[NI] Don't avoid Nothing-like constraints if Nothing was in initial type

#KT-32081 Fixed
 #KT-32951 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2019-06-20 12:58:32 +03:00
parent 4b2175c8f8
commit f3e4c9cdb3
9 changed files with 119 additions and 2 deletions
@@ -10272,6 +10272,16 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/inference/nothingType/kt24490.kt");
}
@TestMetadata("kt32051.kt")
public void testKt32051() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/nothingType/kt32051.kt");
}
@TestMetadata("kt32081.kt")
public void testKt32081() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/nothingType/kt32081.kt");
}
@TestMetadata("lambdaNothingAndExpectedType.kt")
public void testLambdaNothingAndExpectedType() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/nothingType/lambdaNothingAndExpectedType.kt");