Fixed one part of 'Resolution error of this type shouldn't occur for...'

Result for "IF<T>(T, T)" can be "hasUnknownParameters"
if both arguments have types 'uninferred type parameter' (incomplete resolve case),
no constraints are added to the system.
This commit is contained in:
Svetlana Isakova
2014-09-01 22:17:48 +04:00
parent 61dc110cc7
commit 067ac5c94a
3 changed files with 58 additions and 25 deletions
@@ -3781,6 +3781,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest("compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt");
}
@TestMetadata("controlStructuresErrors.kt")
public void testControlStructuresErrors() throws Exception {
doTest("compiler/testData/diagnostics/tests/incompleteCode/controlStructuresErrors.kt");
}
@TestMetadata("inExpr.kt")
public void testInExpr() throws Exception {
doTest("compiler/testData/diagnostics/tests/incompleteCode/inExpr.kt");