[FE 1.0] Create DONT_CARE type only for callable references with no expected type

Otherwise, it can be resolved safety

^KT-52270 Fixed
This commit is contained in:
Victor Petukhov
2022-07-09 11:44:23 +02:00
committed by teamcity
parent fb21937eb1
commit 2057deb91b
10 changed files with 108 additions and 1 deletions
@@ -2083,6 +2083,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/callableReference/kt51844.kt");
}
@Test
@TestMetadata("kt52270.kt")
public void testKt52270() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt52270.kt");
}
@Test
@TestMetadata("nested.kt")
public void testNested() throws Exception {