1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: add support for enum Xyz as u64 { + tests (#16246)

This commit is contained in:
Delyan Angelov
2022-10-29 06:32:20 +03:00
committed by GitHub
parent 4564a47fbc
commit 02c3af2432
18 changed files with 567 additions and 54 deletions

View File

@ -1164,6 +1164,7 @@ pub:
comments []Comment // comments before the first EnumField
fields []EnumField // all the enum fields
attrs []Attr // attributes of enum declaration
typ Type // the default is `int`; can be changed by `enum Big as u64 { a = 5 }`
pos token.Pos
}