[macruby-changes] [2461] MacRuby/trunk/test_vm/ivar.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 3 13:43:38 PDT 2009
Revision: 2461
http://trac.macosforge.org/projects/ruby/changeset/2461
Author: lsansonetti at apple.com
Date: 2009-09-03 13:43:38 -0700 (Thu, 03 Sep 2009)
Log Message:
-----------
added failing test (patch by Bernd Ohr)
Modified Paths:
--------------
MacRuby/trunk/test_vm/ivar.rb
Modified: MacRuby/trunk/test_vm/ivar.rb
===================================================================
--- MacRuby/trunk/test_vm/ivar.rb 2009-09-03 20:38:47 UTC (rev 2460)
+++ MacRuby/trunk/test_vm/ivar.rb 2009-09-03 20:43:38 UTC (rev 2461)
@@ -82,3 +82,15 @@
o.foo
p o.instance_variable_get(:@foo)
}
+
+assert 'nil', %{
+ class Foo
+ def bar
+ @v1 = @v2 = @v3 = @v4 = @v5 = @v6 = @v7 = @v8 = @v9 = @v10 = 0
+ end
+ def foo
+ p @oops
+ end
+ end
+ Foo.new.foo
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090903/96d9772a/attachment.html>
More information about the macruby-changes
mailing list