1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_method.c (me_opts): fixed optimized method aliasing.

[ruby-dev:38824]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-07-19 02:00:27 +00:00
parent 3d57dfa01b
commit 33fc55acef
3 changed files with 15 additions and 0 deletions

View file

@ -69,4 +69,12 @@ class TestAlias < Test::Unit::TestCase
}
}
end
def test_send_alias
x = "abc"
class << x
alias_method :try, :__send__
end
assert_equal("ABC", x.try(:upcase), '[ruby-dev:38824]')
end
end