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