mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
14 lines
268 B
Kotlin
Vendored
14 lines
268 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
class A {
|
|
open inner class Inner(val result: String = "OK", val int: Int)
|
|
|
|
fun box(): String {
|
|
val o = object : Inner(int = 0) {
|
|
fun ok() = result
|
|
}
|
|
return o.ok()
|
|
}
|
|
}
|
|
|
|
fun box() = A().box()
|