Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 10, 2025
1 parent 4d0da83 commit 4b4ec9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/checker/checker.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 4b4ec9a

Please sign in to comment.