Files
kotlin-fork/idea/testData/editor/quickDoc/OnInheritedMethodUsage.kt
T
2015-09-08 02:05:34 +03:00

18 lines
295 B
Kotlin
Vendored

open class C() {
/**
* This method returns zero.
*/
open fun foo(): Int = 0
}
class D(): C() {
override fun foo(): Int = 1
}
fun test() {
D().f<caret>oo()
}
//INFO: <b>public</b> <b>open</b> <b>fun</b> foo(): Int <i>defined in</i> D<p>This method returns zero.</p>