mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
20 lines
257 B
Kotlin
Vendored
20 lines
257 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
class A {
|
|
private val p: Int
|
|
get() = 4
|
|
|
|
companion object B {
|
|
val p: Int
|
|
get() = 6
|
|
}
|
|
|
|
fun a() = p + B.p
|
|
}
|
|
|
|
|
|
fun box(): String {
|
|
if (A().a() != 10) return "Fail"
|
|
|
|
return "OK"
|
|
}
|