[NI] Fix input/output types for callable reference atom
Input and output types are crucial for type variable fixation order and analysis of postponed arguments (callable references, lambdas). Specifically, if there is non-fixed type variable inside input types of a callable reference, then we'll postpone resolution for such callable reference. Initial example with the expected type `KMutableProperty1<*, F>` caused problems because input types were computed incorrectly (while there aren't input types here) #KT-25431 Fixed
This commit is contained in:
@@ -1681,6 +1681,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/sam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("subtypeArgumentFromRHSForReference.kt")
|
||||
public void testSubtypeArgumentFromRHSForReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/subtypeArgumentFromRHSForReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unused.kt")
|
||||
public void testUnused() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/unused.kt");
|
||||
|
||||
Generated
+5
@@ -1681,6 +1681,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/sam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("subtypeArgumentFromRHSForReference.kt")
|
||||
public void testSubtypeArgumentFromRHSForReference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/subtypeArgumentFromRHSForReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unused.kt")
|
||||
public void testUnused() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/unused.kt");
|
||||
|
||||
Reference in New Issue
Block a user