From 99f1cdf9b4305c62072f34adbc5522552983b73f Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 22 Jan 2025 07:31:34 -0300 Subject: [PATCH] simplify --- vlib/v/checker/checker.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index adaafc840585f7..49fab657e6b567 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -5294,8 +5294,7 @@ fn (mut c Checker) ensure_type_exists(typ ast.Type, pos token.Pos) bool { } sym := c.table.sym(typ) if !c.is_builtin_mod && sym.kind in [.struct, .alias, .sum_type, .function]! && !sym.is_pub - && sym.mod != c.mod && sym.mod != 'main' && c.comptime.comptime_for_field_var == '' - && !c.inside_recheck { + && sym.mod != c.mod && sym.mod != 'main' { if sym.kind == .function { fn_info := sym.info as ast.FnType // hack: recover fn mod from func name