[macruby-changes] [1873] MacRuby/branches/experimental/test_vm/eval.rb
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jun 17 21:47:36 PDT 2009
Revision: 1873
http://trac.macosforge.org/projects/ruby/changeset/1873
Author: lsansonetti at apple.com
Date: 2009-06-17 21:47:33 -0700 (Wed, 17 Jun 2009)
Log Message:
-----------
adding one more failing test
Modified Paths:
--------------
MacRuby/branches/experimental/test_vm/eval.rb
Modified: MacRuby/branches/experimental/test_vm/eval.rb
===================================================================
--- MacRuby/branches/experimental/test_vm/eval.rb 2009-06-18 00:53:55 UTC (rev 1872)
+++ MacRuby/branches/experimental/test_vm/eval.rb 2009-06-18 04:47:33 UTC (rev 1873)
@@ -66,3 +66,15 @@
module_eval &$b
end
}
+
+assert '42', %{
+ module A
+ X = 42
+ class B
+ def foo(&b)
+ (class << self; self; end).module_eval &b
+ end
+ end
+ end
+ A::B.new.foo do p X end
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090617/c7f03da2/attachment-0001.html>
More information about the macruby-changes
mailing list