diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | bootstraptest/test_knownbug.rb | 13 |
2 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Mon Apr 7 12:26:32 2008 Koichi Sasada <ko1@atdot.net> + + * bootstraptest/test_knownbug.rb: add a known-bug. + Mon Apr 7 12:15:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * range.c (range_each_func): should not leave a variable diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 40b9441c11..5ffd99a8ea 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -97,3 +97,16 @@ assert_normal_exit %q{ g = "abc".enum_for(:scan, /./) loop { g.next } }, '[ruby-dev:34128]' + +assert_equal %q{[:bar, :foo]}, %q{ + def foo + klass = Class.new do + define_method(:bar) do + return :bar + end + end + [klass.new.bar, :foo] + end + foo +}, "[ ruby-Bugs-19304 ]" + |