Permalink
Browse files

Assume :assign outside %s() returns an object

  • Loading branch information...
vidarh committed Sep 25, 2014
1 parent ffda923 commit a1af1fb6f4ed91d3d51ab87dac43912d43029b19
Showing with 1 addition and 1 deletion.
  1. +1 −1 compiler.rb
View
@@ -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})"
error(err_msg, scope, [:assign, left, right]) # pass current expression as well
end
return Value.new([:subexpr])
return Value.new([:subexpr], :object)
end

0 comments on commit a1af1fb

Please sign in to comment.