mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* basictest/test.rb: Adjust spaces in class declarations
with inheritance. [fix GH-1227] Patch by @adrfer * lib/irb/*: ditto. * lib/prime.rb: ditto. * lib/shell/builtin-command.rb: ditto. * object.c: ditto. * sample/*.rb: ditto. * test/-ext-/method/test_arity.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
87d7a06660
commit
6b35c34c68
16 changed files with 42 additions and 31 deletions
|
@ -2242,11 +2242,11 @@ test_check "alias"
|
|||
class Alias0
|
||||
def foo; "foo" end
|
||||
end
|
||||
class Alias1<Alias0
|
||||
class Alias1 < Alias0
|
||||
alias bar foo
|
||||
def foo; "foo+" + super end
|
||||
end
|
||||
class Alias2<Alias1
|
||||
class Alias2 < Alias1
|
||||
alias baz foo
|
||||
undef foo
|
||||
end
|
||||
|
@ -2258,7 +2258,7 @@ test_ok(x.baz == "foo+foo")
|
|||
# test_check for cache
|
||||
test_ok(x.baz == "foo+foo")
|
||||
|
||||
class Alias3<Alias2
|
||||
class Alias3 < Alias2
|
||||
def foo
|
||||
defined? super
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue