Files
kotlin/compiler/testData/codegen/box/traits/privateInterfaceMethod.kt
2019-11-19 11:00:09 +03:00

14 lines
198 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS
interface A {
private fun foo() = "OK"
public fun bar() = foo()
}
class B : A {
private fun foo() = "fail"
}
fun box() = B().bar()