summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-10-30 13:56:30 -0300
committerJemma Issroff <jemmaissroff@gmail.com>2023-10-31 13:08:09 -0300
commit57748ef2a26cbdfe075347c6f7064eb419b4949a (patch)
tree245fbc6d2d46f1cd2e61b3e7710d98061f446a16 /test
parente2d950733ee274e577813b5a4e930f617c60634f (diff)
[PRISM] Compile forwarding super node
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_compile_prism.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb
index 18637dc71a..032675d13d 100644
--- a/test/ruby/test_compile_prism.rb
+++ b/test/ruby/test_compile_prism.rb
@@ -781,6 +781,11 @@ module Prism
)
end
+ def test_ForwardingSuperNode
+ assert_prism_eval("class Forwarding; def to_s; super; end; end")
+ assert_prism_eval("class Forwarding; def eval(code); super { code }; end; end")
+ end
+
def test_KeywordHashNode
assert_prism_eval("[a: [:b, :c]]")
end