Adding TypeInference tests for `delete` operation on BigInt
@@ -1141,6 +1141,19 @@ public final class TypeInferenceTest {
verify("unionType", STRING_TYPE);
}
+ @Test
+ public void testBigIntWithDeleteOperation() {
+ assuming("x", BIGINT_TYPE);
+ assuming("y", BIGINT_OBJECT_TYPE);
+ assuming("z", createUnionType(BIGINT_TYPE, BIGINT_OBJECT_TYPE));
+
+ inFunction("valueType = delete x; objectType = delete y; unionType = delete z;");
+
+ verify("valueType", BOOLEAN_TYPE);
+ verify("objectType", BOOLEAN_TYPE);
+ verify("unionType", BOOLEAN_TYPE);
+ }
+
@Test
public void testBigIntWithUnaryMinus() {
assuming("x", BIGINT_TYPE);
