diff options
author | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-16 18:49:26 +0900 |
---|---|---|
committer | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-30 00:39:06 +0900 |
commit | fcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch) | |
tree | 64cb17de3f41a2b6fef2368028fbd00349946994 /jni/ruby/bootstraptest/pending.rb |
Fresh start
Diffstat (limited to 'jni/ruby/bootstraptest/pending.rb')
-rw-r--r-- | jni/ruby/bootstraptest/pending.rb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/jni/ruby/bootstraptest/pending.rb b/jni/ruby/bootstraptest/pending.rb new file mode 100644 index 0000000..744c0ad --- /dev/null +++ b/jni/ruby/bootstraptest/pending.rb @@ -0,0 +1,39 @@ +assert_equal 'A', %q{ + class A + @@a = 'A' + def a=(x) + @@a = x + end + def a + @@a + end + end + + B = A.dup + B.new.a = 'B' + A.new.a +}, '[ruby-core:17019]' + +assert_equal 'ok', %q{ + def m + lambda{ + proc{ + return :ng1 + } + }.call.call + :ng2 + end + + begin + m() + rescue LocalJumpError + :ok + end +} + +assert_normal_exit %q{ + r = Range.allocate + def r.<=>(o) true end + r.instance_eval { initialize r, r } + r.inspect +} |