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

allow public unions and interfaces

This commit is contained in:
Alexander Medvednikov 2019-10-27 02:23:52 +03:00
parent ef022c2326
commit e80cf185b9

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')