mirror of
https://github.com/vlang/v.git
synced 2025-09-10 16:00:31 -04:00
table: improve check_types()
This commit is contained in:
parent
2f5de11c22
commit
f579376638
@ -576,6 +576,9 @@ fn (p mut Parser) check_types2(got_, expected_ string, throw bool) bool {
|
|||||||
if p.pref.translated {
|
if p.pref.translated {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if got == expected {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
// generic return type
|
// generic return type
|
||||||
if expected == '_ANYTYPE_' {
|
if expected == '_ANYTYPE_' {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user