blob: ad2826e5e74c2594c467bf19a629af0c7e8071ec [file]
// LANGUAGE: +DataObjects
// WITH_STDLIB
package com.example
import kotlin.test.*
data object DataObject {
data object Inner
}
fun box(): String {
assertEquals(DataObject.hashCode(), DataObject.hashCode())
assertNotEquals(DataObject.hashCode(), DataObject.Inner.hashCode())
assertNotEquals(0, DataObject.hashCode())
assertNotEquals(0, DataObject.Inner.hashCode())
return "OK"
}