blob: c99c7cbf71b9c0569e21d79e7c9d14dd00e6d7a1 [file]
// RUN_PIPELINE_TILL: CODEGEN
// SCOPE_DUMP: Data:equals, Data:hashCode, Data:toString
interface AnyNeighbor {
override fun equals(other: Any?): Boolean
override fun hashCode(): Int
override fun toString(): String
}
class Impl : AnyNeighbor {
override fun equals(other: Any?): Boolean {
return true
}
override fun hashCode(): Int {
return 0
}
override fun toString(): String {
return ""
}
}
data class Data(val i: Impl) : AnyNeighbor by i
/* GENERATED_FIR_TAGS: classDeclaration, data, functionDeclaration, inheritanceDelegation, integerLiteral,
interfaceDeclaration, nullableType, operator, override, primaryConstructor, propertyDeclaration, stringLiteral */