We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d52e0b commit f61e8b5Copy full SHA for f61e8b5
src/main/java/org/truffleruby/parser/ast/InParseNode.java
@@ -58,8 +58,7 @@ public InParseNode(
58
ParseNode nextCase) {
59
super(position);
60
61
- if (expressionNodes instanceof ArrayParseNode) {
62
- var arrayParseNode = (ArrayParseNode) expressionNodes;
+ if (expressionNodes instanceof ArrayParseNode arrayParseNode) {
63
if (arrayParseNode.size() != 1) {
64
throw CompilerDirectives.shouldNotReachHere();
65
}
0 commit comments