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

parser: C enums + another enum simplification

This commit is contained in:
Alexander Medvednikov
2019-11-06 04:43:13 +03:00
parent 91bb969ed1
commit 855a736a2c
6 changed files with 31 additions and 26 deletions

View File

@@ -31,7 +31,7 @@ fn (p mut Parser) get_type2() Type {
name: f.typ_str()// 'fn (int, int) string'
mod: p.mod
func: f
cat: TypeCategory.func
cat: .func
}
p.table.register_type2(fn_typ)
return fn_typ