diff --git a/src/compiler/crystal/semantic/main_visitor.cr b/src/compiler/crystal/semantic/main_visitor.cr index 1362a06aad73..6628aa29999d 100644 --- a/src/compiler/crystal/semantic/main_visitor.cr +++ b/src/compiler/crystal/semantic/main_visitor.cr @@ -2378,7 +2378,7 @@ module Crystal end end - unsafe_call = Conversions.to_unsafe(node, Var.new("value"), self, actual_type, expected_type) + unsafe_call = Conversions.to_unsafe(node, Var.new("value").at(node), self, actual_type, expected_type) if unsafe_call node.extra = unsafe_call return