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:
parent
c23155790a
commit
3d6b936f38
@ -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'
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
println(a)
|
||||
===output===
|
||||
.vrepl.v:2:9: undefined symbol: `a`
|
||||
.vrepl.v:2:9: undefined: `a`
|
||||
|
@ -1,5 +1,5 @@
|
||||
a
|
||||
33
|
||||
===output===
|
||||
.vrepl_temp.v:3:9: undefined symbol: `a`
|
||||
.vrepl_temp.v:3:9: undefined: `a`
|
||||
33
|
||||
|
Loading…
Reference in New Issue
Block a user