[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:
Dmitriy Novozhilov
2020-01-14 13:07:07 +03:00
parent 3428a17759
commit 88a1cb5a17
8 changed files with 86 additions and 12 deletions
@@ -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");
@@ -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");