17 lines
282 B
Kotlin
17 lines
282 B
Kotlin
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>internal</b> <b>open</b> <b>fun</b> foo(): Int<br/><p>This method returns zero.</p> |