mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
16 lines
292 B
Kotlin
Vendored
16 lines
292 B
Kotlin
Vendored
// !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
class Outer {
|
|
private companion object {
|
|
val result = "OK"
|
|
}
|
|
|
|
class Nested {
|
|
fun foo() = { result }()
|
|
}
|
|
|
|
fun test() = Nested().foo()
|
|
}
|
|
|
|
fun box() = Outer().test() |