From f57937663833814d4f88e1c16d6321fe06ca272f Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 8 Nov 2019 01:48:22 +0300 Subject: [PATCH] table: improve check_types() --- vlib/compiler/table.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/compiler/table.v b/vlib/compiler/table.v index aaaa300f09..2968026a8f 100644 --- a/vlib/compiler/table.v +++ b/vlib/compiler/table.v @@ -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_' {