KT-7433 Type inference pushes Unit inside generic function with lower bound constraint

#KT-7433 Fixed
 #KT-7351 Fixed
This commit is contained in:
Svetlana Isakova
2015-04-16 18:00:31 +03:00
parent a37ae6ba6d
commit d40fd440b0
6 changed files with 72 additions and 8 deletions
@@ -5834,6 +5834,18 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("kt7351ConstraintFromUnitExpectedType.kt")
public void testKt7351ConstraintFromUnitExpectedType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/constraints/kt7351ConstraintFromUnitExpectedType.kt");
doTest(fileName);
}
@TestMetadata("kt7433.kt")
public void testKt7433() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/constraints/kt7433.kt");
doTest(fileName);
}
@TestMetadata("notNullConstraintOnNullableType.kt")
public void testNotNullConstraintOnNullableType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/constraints/notNullConstraintOnNullableType.kt");