mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
10 lines
183 B
Kotlin
Vendored
10 lines
183 B
Kotlin
Vendored
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"
|