allow public unions and interfaces

pull/2559/head
Alexander Medvednikov 2019-10-27 02:23:52 +03:00
parent ef022c2326
commit e80cf185b9
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ fn (p mut Parser) parse(pass Pass) {
match next {
.key_fn { p.fn_decl() }
.key_const { p.const_decl() }
.key_struct { p.struct_decl() }
.key_struct, .key_union, .key_interface { p.struct_decl() }
.key_enum { p.enum_decl('') }
else {
p.error('wrong pub keyword usage')