diff options
| author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-10-30 13:56:30 -0300 |
|---|---|---|
| committer | Jemma Issroff <jemmaissroff@gmail.com> | 2023-10-31 13:08:09 -0300 |
| commit | 57748ef2a26cbdfe075347c6f7064eb419b4949a (patch) | |
| tree | 245fbc6d2d46f1cd2e61b3e7710d98061f446a16 /test/ruby | |
| parent | e2d950733ee274e577813b5a4e930f617c60634f (diff) | |
[PRISM] Compile forwarding super node
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 5 |
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 |
