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

table: improve check_types()

This commit is contained in:
Alexander Medvednikov 2019-11-08 01:48:22 +03:00
parent 2f5de11c22
commit f579376638

View File

@ -576,6 +576,9 @@ fn (p mut Parser) check_types2(got_, expected_ string, throw bool) bool {
if p.pref.translated {
return true
}
if got == expected {
return true
}
// generic return type
if expected == '_ANYTYPE_' {