KT-37505 Add box test
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user