Files
kotlin-fork/idea/testData/codeInsight/overrideImplement/overrideRespectCaretPosition.kt.after
T
Alexander Udalov 3dcd85bdb4 Add toString() to Any, fix all tests
#KT-4517 Fixed
2014-03-02 19:54:49 +04:00

30 lines
590 B
Plaintext

open class A() {
open fun foo(value : Int) : Unit = println(value)
open val bar : Int = 0
}
class C : A() {
val constant = 42
// Some comment
override val bar: Int = 0
override fun equals(other: Any?): Boolean {
return super<A>.equals(other)
}
override fun foo(value: Int) {
super<A>.foo(value)
}
override fun hashCode(): Int {
return super<A>.hashCode()
}
override fun toString(): String {
return super<A>.toString()
}
/*
Some another comment
*/
fun someAnotherFunction() {
}
}