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:
@@ -37,5 +37,7 @@ fun box(): String {
|
||||
assertNotEquals(ho1, ho2)
|
||||
assertNotEquals(ho1, ho3)
|
||||
|
||||
assertTrue((d1 : Any) != "")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user