[macruby-changes] [3911] MacRuby/trunk/test_vm/module.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Apr 6 14:51:05 PDT 2010
Revision: 3911
http://trac.macosforge.org/projects/ruby/changeset/3911
Author: lsansonetti at apple.com
Date: 2010-04-06 14:51:01 -0700 (Tue, 06 Apr 2010)
Log Message:
-----------
added failing test
Modified Paths:
--------------
MacRuby/trunk/test_vm/module.rb
Modified: MacRuby/trunk/test_vm/module.rb
===================================================================
--- MacRuby/trunk/test_vm/module.rb 2010-04-06 00:40:25 UTC (rev 3910)
+++ MacRuby/trunk/test_vm/module.rb 2010-04-06 21:51:01 UTC (rev 3911)
@@ -195,3 +195,21 @@
end
X.new.foo
}
+
+assert ':ok', %{
+ module M
+ def self.foo(v)
+ Module.new do
+ define_method(:inherited) do |klass|
+ super(klass)
+ p v
+ end
+ end
+ end
+ end
+ class X
+ extend M.foo(:ok)
+ end
+ class Y<X
+ end
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100406/50710cf6/attachment.html>
More information about the macruby-changes
mailing list