psi2ir: inferred type for 'when' is Nothing only if it's exhaustive

TODO: fix inference bug
This commit is contained in:
Dmitry Petrov
2018-05-03 16:25:05 +03:00
parent 70622ff668
commit 21dfee4565
6 changed files with 117 additions and 10 deletions
@@ -1256,6 +1256,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
runTest("compiler/testData/ir/irText/regressions/integerCoercionToT.kt");
}
@TestMetadata("kt24114.kt")
public void testKt24114() throws Exception {
runTest("compiler/testData/ir/irText/regressions/kt24114.kt");
}
@TestMetadata("typeAliasCtorForGenericClass.kt")
public void testTypeAliasCtorForGenericClass() throws Exception {
runTest("compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.kt");