Skip to content

Commit

Permalink
Assume :assign outside %s() returns an object
Browse files Browse the repository at this point in the history
  • Loading branch information
vidarh committed Sep 25, 2014
1 parent ffda923 commit a1af1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler.rb
Expand Up @@ -583,7 +583,7 @@ def compile_assign(scope, left, right)
err_msg = "Expected an argument on left hand side of assignment - got #{atype.to_s}, (left: #{left.inspect}, right: #{right.inspect})" err_msg = "Expected an argument on left hand side of assignment - got #{atype.to_s}, (left: #{left.inspect}, right: #{right.inspect})"
error(err_msg, scope, [:assign, left, right]) # pass current expression as well error(err_msg, scope, [:assign, left, right]) # pass current expression as well
end end
return Value.new([:subexpr]) return Value.new([:subexpr], :object)
end end




Expand Down

0 comments on commit a1af1fb

Please sign in to comment.