[K/N] Fix: Ignore bridge functions in FunctionReferenceLowering

^KT-59858
This commit is contained in:
Dmitriy Dolovov
2023-07-04 18:20:33 +02:00
committed by Space Team
parent f3833fdcf8
commit 8aacdb471b
17 changed files with 109 additions and 1 deletions
@@ -48607,6 +48607,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/sam/kt56188.kt");
}
@Test
@TestMetadata("kt59858.kt")
public void testKt59858() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("nonInlinedSamWrapper.kt")
public void testNonInlinedSamWrapper() throws Exception {
@@ -48607,6 +48607,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/sam/kt56188.kt");
}
@Test
@TestMetadata("kt59858.kt")
public void testKt59858() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("nonInlinedSamWrapper.kt")
public void testNonInlinedSamWrapper() throws Exception {
+16
View File
@@ -0,0 +1,16 @@
// MODULE: A
// FILE: A.kt
interface Base {
fun f() : Any
}
fun interface Child : Base {
override fun f() : Int
}
// MODULE: B(A)
// FILE: B.kt
fun box(): String {
if (Child { 10 }.f() != 10) return "FAIL"
return "OK"
}
@@ -45841,6 +45841,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/sam/kt56188.kt");
}
@Test
@TestMetadata("kt59858.kt")
public void testKt59858() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("nonInlinedSamWrapper.kt")
public void testNonInlinedSamWrapper() throws Exception {
@@ -48607,6 +48607,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/sam/kt56188.kt");
}
@Test
@TestMetadata("kt59858.kt")
public void testKt59858() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("nonInlinedSamWrapper.kt")
public void testNonInlinedSamWrapper() throws Exception {
@@ -48607,6 +48607,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/sam/kt56188.kt");
}
@Test
@TestMetadata("kt59858.kt")
public void testKt59858() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("nonInlinedSamWrapper.kt")
public void testNonInlinedSamWrapper() throws Exception {
@@ -38928,6 +38928,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/sam/kt56188.kt");
}
@TestMetadata("kt59858.kt")
public void testKt59858() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@TestMetadata("nonInlinedSamWrapper.kt")
public void testNonInlinedSamWrapper() throws Exception {
runTest("compiler/testData/codegen/box/sam/nonInlinedSamWrapper.kt");