mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
11 lines
213 B
Kotlin
Vendored
11 lines
213 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
class A {
|
|
private fun Int.foo(other: Int = 5): Int = this + other
|
|
|
|
inner class B {
|
|
fun bar() = 37.foo()
|
|
}
|
|
}
|
|
|
|
fun box() = if (A().B().bar() == 42) "OK" else "Fail"
|