mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools/vast: update vast to latest V (#11279)
This commit is contained in:
@@ -119,3 +119,13 @@ struct GenericStruct<T> {
|
||||
mut:
|
||||
model T
|
||||
}
|
||||
|
||||
// generic interface
|
||||
interface Gettable<T> {
|
||||
get() T
|
||||
}
|
||||
|
||||
// generic sumtype
|
||||
struct None {}
|
||||
|
||||
type MyOption<T> = Error | None | T
|
||||
|
||||
Reference in New Issue
Block a user