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:
parent
ef022c2326
commit
e80cf185b9
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user