KT-2269 fix: hashCode & equals for primitives
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
fun box() : String {
|
||||
230?.toByte()?.hashCode()
|
||||
9.hashCode()
|
||||
|
||||
if(230.equals(9.toByte())) {
|
||||
return "fail"
|
||||
}
|
||||
|
||||
if(230 == 9.toByte().toInt()) {
|
||||
return "fail"
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user