mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
00e4fd42f3
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
20 lines
258 B
Ruby
20 lines
258 B
Ruby
#
|
|
# This test file concludes tests which point out known bugs.
|
|
# So all tests will cause failure.
|
|
#
|
|
|
|
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
|
|
}
|