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.
2 parents c759ede + f61e8b5 commit 0fa2edcCopy full SHA for 0fa2edc
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