Array#<< is supposed to return self and not the given object
--- MacRuby/branches/experimental/roxor.cpp 2009-03-29 03:36:51 UTC (rev 1245)
+++ MacRuby/branches/experimental/roxor.cpp 2009-03-29 03:40:24 UTC (rev 1246)
@@ -5333,7 +5333,7 @@
{
if (overriden == 0 && TYPE(obj) == T_ARRAY) {
rb_ary_push(obj, other);
- return other;
+ return obj;
}
return __rb_vm_dispatch(cache, obj, NULL, selLTLT, 0, 1, &other);
}