JVM_IR: Fix null-constant comparison with primitive types.

This commit is contained in:
Kristoffer Andersen
2019-09-05 11:25:17 +02:00
committed by max-kammerer
parent e21da3a61a
commit e7d0909979
10 changed files with 122 additions and 44 deletions
@@ -13775,6 +13775,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/boxedLongEqualsLong.kt");
}
@TestMetadata("intEqualsNull.kt")
public void testIntEqualsNull() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/intEqualsNull.kt");
}
@TestMetadata("intEqualsNullableInt.kt")
public void testIntEqualsNullableInt() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/intEqualsNullableInt.kt");
@@ -14930,6 +14930,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/boxedLongEqualsLong.kt");
}
@TestMetadata("intEqualsNull.kt")
public void testIntEqualsNull() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/intEqualsNull.kt");
}
@TestMetadata("intEqualsNullableInt.kt")
public void testIntEqualsNullableInt() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/equalityWithObject/intEqualsNullableInt.kt");