mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
14 lines
198 B
Kotlin
Vendored
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() |