Files
kotlin-fork/j2k/testData/fileOrElement/function/overrideObject.kt
T
2015-04-21 08:08:32 +03:00

26 lines
533 B
Kotlin
Vendored

// ERROR: Unresolved reference: clone
class X {
override fun hashCode(): Int {
return super.hashCode()
}
override fun equals(o: Any?): Boolean {
return super.equals(o)
}
override fun toString(): String {
return super.toString()
}
throws(CloneNotSupportedException::class)
protected fun clone(): Any {
return super.clone()
}
}
class Y : Thread() {
throws(CloneNotSupportedException::class)
override fun clone(): Any {
return super.clone()
}
}