From 52168d078151543b9215959b781c55b307c37eaa Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 10 Oct 2019 00:56:33 +0300 Subject: [PATCH] fix table.v --- compiler/table.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) } }