KT-2269 fix: hashCode & equals for primitives

This commit is contained in:
Alex Tkachman
2012-08-04 08:55:38 +03:00
parent bcec8b7c36
commit 301b55788e
4 changed files with 70 additions and 3 deletions
@@ -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"
}