mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
17 lines
258 B
Kotlin
Vendored
17 lines
258 B
Kotlin
Vendored
class Outer {
|
|
class Nested {
|
|
fun fn(): String {
|
|
s = "OK"
|
|
return s
|
|
}
|
|
}
|
|
|
|
companion object {
|
|
public var s = "fail"
|
|
private set
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Outer.Nested().fn()
|
|
} |