diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-06 04:48:11 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-06 04:48:11 +0000 |
| commit | 6d0ece20f3d2cb892f523ee2f988f5c5a295b0d8 (patch) | |
| tree | 018871defd2476abc09fe3008fa1f523b6fed384 /yarvtest | |
| parent | 2a892026310208b58a8203b8cb5fe252ad9823c8 (diff) | |
| download | ruby-6d0ece20f3d2cb892f523ee2f988f5c5a295b0d8.tar.gz ruby-6d0ece20f3d2cb892f523ee2f988f5c5a295b0d8.tar.xz ruby-6d0ece20f3d2cb892f523ee2f988f5c5a295b0d8.zip | |
* insns.def (send) : fix to optimize send() with Symbol.
* yarvtest/test_method.rb : add another test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'yarvtest')
| -rw-r--r-- | yarvtest/test_method.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yarvtest/test_method.rb b/yarvtest/test_method.rb index 60e7a9dd4..249211c2e 100644 --- a/yarvtest/test_method.rb +++ b/yarvtest/test_method.rb @@ -553,6 +553,14 @@ class TestMethod < YarvTestBase obj.send(:m, :x){}
$r
}
+ ae %q{
+ class C
+ def send
+ :ok
+ end
+ end
+ C.new.send
+ }
end
def test_send_with_private
|
