mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
17 lines
249 B
Kotlin
Vendored
17 lines
249 B
Kotlin
Vendored
open class X(private val n: String) {
|
|
|
|
fun foo(): String {
|
|
return object : X("inner") {
|
|
fun print(): String {
|
|
return n;
|
|
}
|
|
}.print()
|
|
}
|
|
}
|
|
|
|
|
|
fun box() : String {
|
|
return X("OK").foo()
|
|
}
|
|
|