KT-37505 Add box test
This commit is contained in:
Generated
+5
@@ -17795,6 +17795,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37505.kt")
|
||||
public void testKt37505() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4097.kt")
|
||||
public void testKt4097() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
fun testByte(x: Int?) = x?.toByte()?.hashCode()?.equals(x)
|
||||
|
||||
fun testShort(x: Int?) = x?.toShort()?.hashCode()?.equals(x)
|
||||
|
||||
fun box(): String {
|
||||
testByte(42)
|
||||
testShort(42)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
+5
@@ -19311,6 +19311,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37505.kt")
|
||||
public void testKt37505() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4097.kt")
|
||||
public void testKt4097() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
|
||||
|
||||
+5
@@ -19311,6 +19311,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37505.kt")
|
||||
public void testKt37505() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4097.kt")
|
||||
public void testKt4097() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
|
||||
|
||||
+5
@@ -17795,6 +17795,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37505.kt")
|
||||
public void testKt37505() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4097.kt")
|
||||
public void testKt4097() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
|
||||
|
||||
Generated
+5
@@ -14831,6 +14831,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37505.kt")
|
||||
public void testKt37505() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4097.kt")
|
||||
public void testKt4097() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
|
||||
|
||||
+5
@@ -14936,6 +14936,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37505.kt")
|
||||
public void testKt37505() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4097.kt")
|
||||
public void testKt4097() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
|
||||
|
||||
Reference in New Issue
Block a user