From 59b3fc75d0d33d885fe662827101b44b5cd41691 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 22 Jan 2020 21:30:35 +0100 Subject: [PATCH] tmp fix generic test --- vlib/compiler/table.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/compiler/table.v b/vlib/compiler/table.v index 90386ca6ee..4209a0f1ad 100644 --- a/vlib/compiler/table.v +++ b/vlib/compiler/table.v @@ -705,7 +705,7 @@ fn (p mut Parser) check_types2(got_, expected_ string, throw bool) bool { if got.starts_with('fn ') && (expected.ends_with('fn') || expected.ends_with('Fn')) { return true } - if got.starts_with('fn ') && expected.starts_with('fn ') { + if got.starts_with('fn ') && expected.starts_with('fn ') && p.mod == 'gg2' { return true } // Allow pointer arithmetic