1
0
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:
Alexander Medvednikov 2019-12-23 07:05:52 +03:00
parent 7ab993c218
commit 28594a65a8

View File

@ -94,7 +94,7 @@ fn (p mut Parser) enum_decl(no_name bool) {
if is_flag && !p.first_pass() {
p.gen_enum_flag_methods(mut T)
}
if p.pass == .decl {
if p.pass == .decl || is_flag {
p.table.register_type(T)
}
// Register `Expression` enum