7ce5556de3
The condition on the relationship between the current class and the type of the receiver for protected members was the opposite of what the JVMS says, and yet somehow mostly worked? #KT-48331 Fixed #KT-20542 Fixed
17 lines
329 B
Kotlin
Vendored
17 lines
329 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// IGNORE_BACKEND: JVM
|
|
// FILE: x.kt
|
|
package x
|
|
|
|
internal class C {
|
|
// `foo$default` generated as package-private (not protected):
|
|
private fun foo(result: String = "OK") = result
|
|
// this needs an accessor:
|
|
internal inline fun bar() = foo()
|
|
}
|
|
|
|
// FILE: y.kt
|
|
import x.*
|
|
|
|
fun box() = C().bar()
|