[FIR] Fix false-positive smartcast on receiver in rhs of elvis

#KT-44942 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-02-15 17:23:16 +03:00
parent 2b39282682
commit dfcff132fd
10 changed files with 70 additions and 6 deletions
@@ -37452,6 +37452,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/smartCasts/kt44932.kt");
}
@Test
@TestMetadata("kt44942.kt")
public void testKt44942() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt44942.kt");
}
@Test
@TestMetadata("lambdaArgumentWithoutType.kt")
public void testLambdaArgumentWithoutType() throws Exception {
@@ -37452,6 +37452,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/smartCasts/kt44932.kt");
}
@Test
@TestMetadata("kt44942.kt")
public void testKt44942() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/kt44942.kt");
}
@Test
@TestMetadata("lambdaArgumentWithoutType.kt")
public void testLambdaArgumentWithoutType() throws Exception {