fix enum bitfield

pull/3195/head
Alexander Medvednikov 2019-12-23 07:05:52 +03:00
parent 7ab993c218
commit 28594a65a8
1 changed files with 1 additions and 1 deletions

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