[FIR] Unwrap captured types in target type of SAM conversion
^KT-66256 Fixed
This commit is contained in:
committed by
Space Team
parent
690f39b91c
commit
b875ae774e
+1
-1
@@ -549,7 +549,7 @@ internal class AdapterGenerator(
|
||||
}
|
||||
|
||||
internal fun getFunctionTypeForPossibleSamType(parameterType: ConeKotlinType): ConeKotlinType? {
|
||||
return samResolver.getFunctionTypeForPossibleSamType(parameterType)
|
||||
return samResolver.getSamInfoForPossibleSamType(parameterType)?.functionalType
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+6
@@ -53661,6 +53661,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/sam/fieldInJavaSamInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inProjectedSam.kt")
|
||||
public void testInProjectedSam() {
|
||||
runTest("compiler/testData/codegen/box/sam/inProjectedSam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlinedSamWrapper.kt")
|
||||
public void testInlinedSamWrapper() {
|
||||
|
||||
+6
@@ -53661,6 +53661,12 @@ public class FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGener
|
||||
runTest("compiler/testData/codegen/box/sam/fieldInJavaSamInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inProjectedSam.kt")
|
||||
public void testInProjectedSam() {
|
||||
runTest("compiler/testData/codegen/box/sam/inProjectedSam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlinedSamWrapper.kt")
|
||||
public void testInlinedSamWrapper() {
|
||||
|
||||
+6
@@ -53661,6 +53661,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/sam/fieldInJavaSamInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inProjectedSam.kt")
|
||||
public void testInProjectedSam() {
|
||||
runTest("compiler/testData/codegen/box/sam/inProjectedSam.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlinedSamWrapper.kt")
|
||||
public void testInlinedSamWrapper() {
|
||||
|
||||
Reference in New Issue
Block a user