parser: undefined error

pull/2460/head
Alexander Medvednikov 2019-10-20 20:47:24 +03:00
parent c23155790a
commit 3d6b936f38
3 changed files with 3 additions and 3 deletions

View File

@ -1989,7 +1989,7 @@ fn (p mut Parser) get_undefined_fn_type(name string, orig_name string) string {
} else if orig_name in reserved_type_param_names { } else if orig_name in reserved_type_param_names {
p.error('the letter `$orig_name` is reserved for type parameters') p.error('the letter `$orig_name` is reserved for type parameters')
} else { } else {
p.error('undefined symbol: `$orig_name`') p.error('undefined: `$orig_name`')
} }
return 'void' return 'void'
} }

View File

@ -1,3 +1,3 @@
println(a) println(a)
===output=== ===output===
.vrepl.v:2:9: undefined symbol: `a` .vrepl.v:2:9: undefined: `a`

View File

@ -1,5 +1,5 @@
a a
33 33
===output=== ===output===
.vrepl_temp.v:3:9: undefined symbol: `a` .vrepl_temp.v:3:9: undefined: `a`
33 33