1
0
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:
lydiandy
2021-08-23 05:37:49 -05:00
committed by GitHub
parent 51d7aede68
commit f87a638ddc
2 changed files with 46 additions and 11 deletions

View File

@@ -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