[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:
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user