mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
new vh generation + simpler match statement
This commit is contained in:
@@ -8,7 +8,7 @@ fn (p mut Parser) get_type2() Type {
|
||||
mut typ := ''
|
||||
mut cat := TypeCategory.struct_
|
||||
// fn type
|
||||
if p.tok == .func {
|
||||
if p.tok == .key_fn {
|
||||
mut f := Fn{name: '_', mod: p.mod}
|
||||
p.next()
|
||||
line_nr := p.scanner.line_nr
|
||||
|
||||
Reference in New Issue
Block a user