[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:
committed by
teamcity
parent
fb21937eb1
commit
2057deb91b
+6
@@ -1989,6 +1989,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
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 {
|
||||
|
||||
+6
@@ -2031,6 +2031,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
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 {
|
||||
|
||||
+5
@@ -1813,6 +1813,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/callableReference/kt51844.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt52270.kt")
|
||||
public void testKt52270() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/kt52270.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nested.kt")
|
||||
public void testNested() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/nested.kt");
|
||||
|
||||
Reference in New Issue
Block a user