Open orchestr7 opened 9 months ago
If you will do the following:
data class SimpleArray(val a: Array<Long>)
and after that will try to do something like
assertEquals(SimpleArray(arrayOf(1)), SimpleArray(arrayOf(1)))
you will obviously get false. But sometimes it's easy to forget it, when you are working with Listsfor a long period of time (because Lists will work in Kotlin-like style in the same case).
Lists
If you will do the following:
and after that will try to do something like
you will obviously get false. But sometimes it's easy to forget it, when you are working with
Lists
for a long period of time (because Lists will work in Kotlin-like style in the same case).