if some type parameter has only weak constraints (from bounds), then we consider it as unknown

This commit is contained in:
Svetlana Isakova
2013-09-26 14:41:48 +04:00
parent 731efd0781
commit cb25e1d55a
3 changed files with 83 additions and 0 deletions
@@ -3537,6 +3537,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/inference/upperBounds"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("doNotInferFromBoundsOnly.kt")
public void testDoNotInferFromBoundsOnly() throws Exception {
doTest("compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt");
}
@TestMetadata("kt2856.kt")
public void testKt2856() throws Exception {
doTest("compiler/testData/diagnostics/tests/inference/upperBounds/kt2856.kt");