[K/N] Fix: Ignore bridge functions in FunctionReferenceLowering
^KT-59858
This commit is contained in:
committed by
Space Team
parent
f3833fdcf8
commit
8aacdb471b
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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
@@ -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"
|
||||
}
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user