From 4b4ec9a980fe46f2a6caf948670f27d5274f798d Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 10 Jan 2025 17:01:07 -0300 Subject: [PATCH] fix --- vlib/v/checker/checker.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 108b928f674f37..96d5cb91840062 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -5463,7 +5463,7 @@ fn (mut c Checker) fail_if_unreadable(expr ast.Expr, typ ast.Type, what string) if c.fail_if_unreadable(expr.left, expr.left_type, what) { return true } - if typ.has_flag(.shared_f) { + if typ.has_flag(.shared_f) && expr.left is ast.SelectorExpr { return false } }