Files
kotlin/compiler/testData/codegen/box/defaultArguments/protected.kt
2018-06-28 12:26:41 +02:00

24 lines
337 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: Foo.kt
package foo
open class Foo() {
protected fun foo(value: Boolean = false) = if (!value) "OK" else "fail5"
}
// FILE: Bar.kt
package bar
import foo.Foo
class Bar() : Foo() {
fun execute(): String {
return { foo() } ()
}
}
fun box(): String {
return Bar().execute()
}