mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
14 lines
244 B
Kotlin
Vendored
14 lines
244 B
Kotlin
Vendored
abstract class Base(val fn: () -> String)
|
|
|
|
open class Outer {
|
|
val outerO = "O"
|
|
|
|
fun test(): Base {
|
|
val localK = "K"
|
|
class Local : Base({ outerO + localK })
|
|
|
|
return Local()
|
|
}
|
|
}
|
|
|
|
fun box() = Outer().test().fn() |