mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
get_type.v
This commit is contained in:
parent
0a38b307cd
commit
cb46bf314e
4 changed files with 80 additions and 34 deletions
|
@ -740,7 +740,7 @@ fn (p mut Parser) type_decl() {
|
|||
if p.tok == .key_struct {
|
||||
p.error('use `struct $name {` instead of `type $name struct {`')
|
||||
}
|
||||
parent := p.get_type2()
|
||||
parent := p.get_type3()
|
||||
nt_pair := p.table.cgen_name_type_pair(name, parent.name)
|
||||
// TODO dirty C typedef hacks for DOOM
|
||||
// Unknown type probably means it's a struct, and it's used before the struct is defined,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue