K2: Do not use KFunctionN as representation type for adapted references
Beside some corner cases, it's already prohibited in K1 because adaptation have a bit strange nature (they don't represent any existing real function exactly) ^KT-55137 Fixed
This commit is contained in:
committed by
Space Team
parent
dcdc48a233
commit
a38040680c
+6
@@ -3111,6 +3111,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/adapted"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noKFunctionForAdaptation.kt")
|
||||
public void testNoKFunctionForAdaptation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/adapted/noKFunctionForAdaptation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleAdaptationOutsideOfCall.kt")
|
||||
public void testSimpleAdaptationOutsideOfCall() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user