JVM IR: prevent behavior change with operator dot calls on literals

#KT-42321 Fixed
This commit is contained in:
Alexander Udalov
2021-02-25 20:20:03 +01:00
parent c7498dd74d
commit bf844aa8e4
22 changed files with 920 additions and 50 deletions
@@ -18931,6 +18931,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.kt");
}
@Test
@TestMetadata("literalReceiverWithIntegerValueType.kt")
public void testLiteralReceiverWithIntegerValueType() throws Exception {
runTest("compiler/testData/diagnostics/tests/numbers/literalReceiverWithIntegerValueType.kt");
}
@Test
@TestMetadata("numberAsUnionAndIntersection.kt")
public void testNumberAsUnionAndIntersection() throws Exception {
@@ -1334,6 +1334,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/binaryOp/bitwiseOpNullable.kt");
}
@Test
@TestMetadata("boxingOfLiteralReceiverWithIntegerValueType.kt")
public void testBoxingOfLiteralReceiverWithIntegerValueType() throws Exception {
runTest("compiler/testData/codegen/box/binaryOp/boxingOfLiteralReceiverWithIntegerValueType.kt");
}
@Test
@TestMetadata("call.kt")
public void testCall() throws Exception {
@@ -1346,6 +1346,12 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
runTest("compiler/testData/ir/irText/expressions/kt37779.kt");
}
@Test
@TestMetadata("kt42321.kt")
public void testKt42321() throws Exception {
runTest("compiler/testData/ir/irText/expressions/kt42321.kt");
}
@Test
@TestMetadata("kt45022.kt")
public void testKt45022() throws Exception {