Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/private/memberExtensionFunction.kt
T
2018-06-09 19:15:38 +03:00

11 lines
208 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_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"