summaryrefslogtreecommitdiff
path: root/test/ruby/test_ast.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-24 01:06:59 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-12 17:24:48 +0900
commitfb6a489af2765a3b56e301adf0019af6bbad6156 (patch)
treec024078f3a408d33e41aec446e17f5142907eb87 /test/ruby/test_ast.rb
parentb41a19f92fdd9c8567e0650ceebb72386a96e395 (diff)
Revert "Method reference operator"
This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b. [Feature #16275]
Diffstat (limited to 'test/ruby/test_ast.rb')
-rw-r--r--test/ruby/test_ast.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/ruby/test_ast.rb b/test/ruby/test_ast.rb
index a4c18d0ad6..4c156650b8 100644
--- a/test/ruby/test_ast.rb
+++ b/test/ruby/test_ast.rb
@@ -264,15 +264,6 @@ class TestAst < Test::Unit::TestCase
assert_equal(:SCOPE, defn.type)
end
- def test_methref
- node = RubyVM::AbstractSyntaxTree.parse("obj.:foo")
- _, _, body = *node.children
- assert_equal(:METHREF, body.type)
- recv, mid = body.children
- assert_equal(:VCALL, recv.type)
- assert_equal(:foo, mid)
- end
-
def test_dstr
node = parse('"foo#{1}bar"')
_, _, body = *node.children