[NI] Consider intersection type with number type as Nothing

Currently, only for "in": In<in Int & A> == In<in Nothing> == In<*>

 #KT-37302 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-03-22 23:25:12 +03:00
parent b23aff4d0d
commit 191fb02bf6
26 changed files with 242 additions and 92 deletions
@@ -4775,6 +4775,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/constants/long.kt");
}
@TestMetadata("numberLiteralCoercionToInferredType.kt")
public void testNumberLiteralCoercionToInferredType() throws Exception {
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
}
@TestMetadata("privateConst.kt")
public void testPrivateConst() throws Exception {
runTest("compiler/testData/codegen/box/constants/privateConst.kt");