diff --git a/compiler/table.v b/compiler/table.v index ef9cd79892..ead5aec864 100644 --- a/compiler/table.v +++ b/compiler/table.v @@ -683,15 +683,15 @@ fn (p mut Parser) check_types2(got_, expected_ string, throw bool) bool { // throw by default fn (p mut Parser) check_types(got, expected string) bool { if p.first_pass() { return true } - return p._check_types(got, expected, true) + return p.check_types2(got, expected, true) } fn (p mut Parser) check_types_no_throw(got, expected string) bool { - return p._check_types(got, expected, false) + return p.check_types2(got, expected, false) } fn (p mut Parser) check_types_with_token_index(got, expected string, var_token_idx int) { - if !p._check_types(got, expected, false) { + if !p.check_types2(got, expected, false) { p.error_with_token_index('expected type `$expected`, but got `$got`', var_token_idx) } }