diff options
Diffstat (limited to 'yarvtest/test_class.rb')
-rw-r--r-- | yarvtest/test_class.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/yarvtest/test_class.rb b/yarvtest/test_class.rb index 488b3ccfd9..43d3e3aa55 100644 --- a/yarvtest/test_class.rb +++ b/yarvtest/test_class.rb @@ -754,6 +754,27 @@ class TestClass < YarvTestBase ae %q{
class C
def initialize
+ @_v = 1
+ end
+
+ def foo
+ @_v
+ end
+ end
+ class D < C
+ def initialize
+ @_v = 2
+ super
+ end
+ def foo
+ [@_v, super]
+ end
+ end
+ D.new.foo
+ }
+ ae %q{
+ class C
+ def initialize
@_c = 1
end
end
|