mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix enum bitfield
This commit is contained in:
parent
7ab993c218
commit
28594a65a8
@ -94,7 +94,7 @@ fn (p mut Parser) enum_decl(no_name bool) {
|
|||||||
if is_flag && !p.first_pass() {
|
if is_flag && !p.first_pass() {
|
||||||
p.gen_enum_flag_methods(mut T)
|
p.gen_enum_flag_methods(mut T)
|
||||||
}
|
}
|
||||||
if p.pass == .decl {
|
if p.pass == .decl || is_flag {
|
||||||
p.table.register_type(T)
|
p.table.register_type(T)
|
||||||
}
|
}
|
||||||
// Register `Expression` enum
|
// Register `Expression` enum
|
||||||
|
Loading…
Reference in New Issue
Block a user