[FE 1.0] Check callable reference return type safety during resolution

^KT-51844
^KT-52503 Fixed
This commit is contained in:
Victor Petukhov
2022-05-25 11:00:51 +02:00
committed by teamcity
parent 51551998c7
commit 0199c76c06
20 changed files with 140 additions and 33 deletions
@@ -1983,6 +1983,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/kt50172.kt");
}
@Test
@TestMetadata("kt51844.kt")
public void testKt51844() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt51844.kt");
}
@Test
@TestMetadata("nested.kt")
public void testNested() throws Exception {
@@ -2025,6 +2025,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/kt50172.kt");
}
@Test
@TestMetadata("kt51844.kt")
public void testKt51844() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt51844.kt");
}
@Test
@TestMetadata("nested.kt")
public void testNested() throws Exception {
@@ -1808,6 +1808,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/callableReference/kt50172.kt");
}
@TestMetadata("kt51844.kt")
public void testKt51844() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt51844.kt");
}
@TestMetadata("nested.kt")
public void testNested() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/nested.kt");