mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm.c, vm_insnhelper.c: fix escape process with "braek" and "return"
syntax in "lambda". [ ruby-Bugs-19304 ], [ruby-core:17164] * KNOWNBUGS.rb, bootstraptest/test_proc.rb: add/move solved test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e2f37fb9c6
commit
00e4fd42f3
5 changed files with 125 additions and 23 deletions
21
KNOWNBUGS.rb
21
KNOWNBUGS.rb
|
@ -3,15 +3,18 @@
|
|||
# So all tests will cause failure.
|
||||
#
|
||||
|
||||
assert_equal %q{[:bar, :foo]}, %q{
|
||||
def foo
|
||||
klass = Class.new do
|
||||
define_method(:bar) do
|
||||
return :bar
|
||||
end
|
||||
assert_equal 'A', %q{
|
||||
class A
|
||||
@@a = 'A'
|
||||
def a=(x)
|
||||
@@a = x
|
||||
end
|
||||
def a
|
||||
@@a
|
||||
end
|
||||
[klass.new.bar, :foo]
|
||||
end
|
||||
foo
|
||||
}, "[ ruby-Bugs-19304 ]"
|
||||
|
||||
B = A.dup
|
||||
B.new.a = 'B'
|
||||
A.new.a
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue