1
0
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:
Alexander Medvednikov
2019-10-21 14:21:30 +03:00
parent 14c273f273
commit 4574039e4d
8 changed files with 121 additions and 29 deletions

View File

@@ -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