KT-37505 Add box test

This commit is contained in:
Dmitry Petrov
2020-03-16 10:13:20 +03:00
parent 3dc898b8ca
commit d5b65abc5d
7 changed files with 40 additions and 0 deletions
+10
View File
@@ -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"
}