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

parser: undefined error

This commit is contained in:
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 {
p.error('the letter `$orig_name` is reserved for type parameters')
} else {
p.error('undefined symbol: `$orig_name`')
p.error('undefined: `$orig_name`')
}
return 'void'
}

View File

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

View File

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