mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
15 lines
210 B
Kotlin
Vendored
15 lines
210 B
Kotlin
Vendored
package a
|
|
|
|
open class A {
|
|
protected fun protectedFun(): String = "OK"
|
|
}
|
|
|
|
class BSamePackage: A() {
|
|
fun test(): String {
|
|
val a = {
|
|
protectedFun()
|
|
}
|
|
return a()
|
|
}
|
|
}
|