[NI] Use new type substitutor instead of old in completion of callable references
It's necessary because of new type substitutor is eager than odl, so if there is a substitution of type parameter deep inside type arguments then second substitutor wins against first #KT-35896 Fixed
This commit is contained in:
@@ -2389,6 +2389,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/generic/kt12286.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35896.kt")
|
||||
public void testKt35896() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/generic/kt35896.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt7470.kt")
|
||||
public void testKt7470() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/generic/kt7470.kt");
|
||||
|
||||
Generated
+5
@@ -2384,6 +2384,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/generic/kt12286.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35896.kt")
|
||||
public void testKt35896() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/generic/kt35896.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt7470.kt")
|
||||
public void testKt7470() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/generic/kt7470.kt");
|
||||
|
||||
Reference in New Issue
Block a user