aboutsummaryrefslogtreecommitdiffstats
path: root/test/prism/errors_test.rb
diff options
context:
space:
mode:
authorTSUYUSATO Kitsune <make.just.on@gmail.com>2023-11-23 00:13:20 +0900
committergit <svn-admin@ruby-lang.org>2023-11-22 15:45:33 +0000
commit6968b289e756d0df8eec1c1f7d6e5d0596dfda21 (patch)
tree8e317410f72849e87286ed0d2c00da2f6512feac /test/prism/errors_test.rb
parent1f06d168bae7926fe518e30f30f41bc1fbfaf161 (diff)
downloadruby-6968b289e756d0df8eec1c1f7d6e5d0596dfda21.tar.gz
[ruby/prism] Check void values in singleton class (`class <<`)
Follow up the ruby/ruby#8917 change. https://github.com/ruby/prism/commit/f6bac4d3bf
Diffstat (limited to 'test/prism/errors_test.rb')
-rw-r--r--test/prism/errors_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb
index 5572a3254f..6f6df71d14 100644
--- a/test/prism/errors_test.rb
+++ b/test/prism/errors_test.rb
@@ -1508,6 +1508,8 @@ module Prism
end
class A < (return)
end
+ class << (return)
+ end
for x in (return)
end
RUBY
@@ -1520,6 +1522,7 @@ module Prism
[message, 80..86],
[message, 110..116],
[message, 132..138],
+ [message, 154..160],
], compare_ripper: false # Ripper does not check 'void value expression'.
end