complete type inference only for one candidate

(the most specific)
to avoid exponential resolve of value arguments for several candidates
where type inference is incomplete (or depends on expected type)
This commit is contained in:
Svetlana Isakova
2012-11-09 15:50:16 +04:00
parent dda3091dfb
commit e9c8be8449
13 changed files with 126 additions and 49 deletions
@@ -1733,9 +1733,29 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/inference/arrayConstructor.kt");
}
@TestMetadata("cannotCompleteResolve.kt")
public void testCannotCompleteResolve() throws Exception {
doTest("compiler/testData/diagnostics/tests/inference/cannotCompleteResolve.kt");
@TestMetadata("cannotCompleteResolveAmbiguity.kt")
public void testCannotCompleteResolveAmbiguity() throws Exception {
doTest("compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt");
}
@TestMetadata("cannotCompleteResolveFunctionLiteralsNoUse.kt")
public void testCannotCompleteResolveFunctionLiteralsNoUse() throws Exception {
doTest("compiler/testData/diagnostics/tests/inference/cannotCompleteResolveFunctionLiteralsNoUse.kt");
}
@TestMetadata("cannotCompleteResolveNoInfoForParameter.kt")
public void testCannotCompleteResolveNoInfoForParameter() throws Exception {
doTest("compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt");
}
@TestMetadata("cannotCompleteResolveNoneApplicable.kt")
public void testCannotCompleteResolveNoneApplicable() throws Exception {
doTest("compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoneApplicable.kt");
}
@TestMetadata("cannotCompleteResolveWithFunctionLiterals.kt")
public void testCannotCompleteResolveWithFunctionLiterals() throws Exception {
doTest("compiler/testData/diagnostics/tests/inference/cannotCompleteResolveWithFunctionLiterals.kt");
}
@TestMetadata("completeInferenceIfManyFailed.kt")