Before comparing types of data class objects in dataClass.equals ensure that the other comparand is an object too, otherwise it may fail on Rhino.

This commit is contained in:
Ilya Gorbunov
2015-09-03 21:57:06 +03:00
parent f6c9d63c46
commit c82c914c5d
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -37,5 +37,7 @@ fun box(): String {
assertNotEquals(ho1, ho2)
assertNotEquals(ho1, ho3)
assertTrue((d1 : Any) != "")
return "OK"
}