Skip to content

Commit 81dc980

Browse files
committed
Fix false type checking error with instanceof
1 parent a00b582 commit 81dc980

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/nextflow/script/control/TypeCheckingVisitorEx.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,10 @@ public void visitBinaryExpression(BinaryExpression node) {
835835
resultType = resolveOpResultType(lhsType, rhsType, lhsOps, rhsOps, "rightShiftUnsigned");
836836
break;
837837

838+
case Types.KEYWORD_INSTANCEOF:
839+
case Types.COMPARE_NOT_INSTANCEOF:
840+
return;
841+
838842
case Types.COMPARE_LESS_THAN:
839843
case Types.COMPARE_LESS_THAN_EQUAL:
840844
case Types.COMPARE_GREATER_THAN:

0 commit comments

Comments
 (0)