[macruby-changes] [MacRuby/MacRuby] ff4200: arg_concat() on op_asgn was inversed
GitHub
noreply at github.com
Thu Aug 9 06:42:37 PDT 2012
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: ff420063a6246c4f2b4f0c893a24eac7cc5e5375
https://github.com/MacRuby/MacRuby/commit/ff420063a6246c4f2b4f0c893a24eac7cc5e5375
Author: Watson <watson1978 at gmail.com>
Date: 2012-08-09 (Thu, 09 Aug 2012)
Changed paths:
M compiler.cpp
M parse.y
Log Message:
-----------
arg_concat() on op_asgn was inversed
fix the following:
----
require 'test/unit/assertions.rb'
include Test::Unit::Assertions
a = Hash.new {[]}
b = [1, 2]
a[:x] += [*b, 3]
assert_equal([1, 2, 3], a[:x])
More information about the macruby-changes
mailing list