f3da26946b
In K1 analogue of `K2_VISIBILITY_ERROR` is `K1_RUNTIME_ERROR`, so
candidates with `K2_VISIBILITY_ERROR` should win over innaplicable
candidates with `INAPPLICABLE`, `INAPPLICABLE_ARGUMENTS_MAPPING_ERROR`
or `INAPPLICABLE_WRONG_RECEIVER` applicability
This is needed to allow resolution to invisible symbols (and later
suppress error with `@Suppress("INVISIBLE_SYMBOL", "INVISIBLE_REFERENCE")`
^KT-55026 Fixed
^KT-55234
19 lines
399 B
Kotlin
Vendored
19 lines
399 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
// ISSUE: KT-55026
|
|
|
|
// MODULE: lib
|
|
interface Base {
|
|
val x: String
|
|
}
|
|
|
|
internal class Some(override val x: String) : Base
|
|
internal class Other(override val x: String) : Base
|
|
|
|
// MODULE: main(lib)
|
|
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
|
|
|
internal fun Some(): Base = Some("K")
|
|
internal fun foo(): Base = Other("O")
|
|
|
|
fun box(): String = foo().x + Some().x
|