[macruby-changes] [2264] MacRuby/trunk/test_vm/constant.rb

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 8 03:14:41 PDT 2009


Revision: 2264
          http://trac.macosforge.org/projects/ruby/changeset/2264
Author:   vincent.isambart at gmail.com
Date:     2009-08-08 03:14:39 -0700 (Sat, 08 Aug 2009)
Log Message:
-----------
added a new failing test based of bug report #305
http://www.macruby.org/trac/ticket/305

Modified Paths:
--------------
    MacRuby/trunk/test_vm/constant.rb

Modified: MacRuby/trunk/test_vm/constant.rb
===================================================================
--- MacRuby/trunk/test_vm/constant.rb	2009-08-07 23:51:17 UTC (rev 2263)
+++ MacRuby/trunk/test_vm/constant.rb	2009-08-08 10:14:39 UTC (rev 2264)
@@ -92,3 +92,15 @@
 }
 
 assert '1', "class Float; class X; p ROUNDS; end; end"
+
+assert '42', %{
+  class A
+    B = 42
+  end
+  A.class_eval {
+    def bar
+      p B
+    end
+  }
+  A.new.bar
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090808/a1932480/attachment-0001.html>


More information about the macruby-changes mailing list