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
32 lines
387 B
Kotlin
Vendored
32 lines
387 B
Kotlin
Vendored
class A {
|
|
companion object Comp {}
|
|
|
|
fun foo() {
|
|
<!UNRESOLVED_REFERENCE!>Comp<!>()
|
|
}
|
|
}
|
|
|
|
object B {
|
|
private val x = <!UNRESOLVED_REFERENCE!>B<!>()
|
|
}
|
|
|
|
class D {
|
|
companion object Comp2 {
|
|
operator fun invoke() {}
|
|
}
|
|
|
|
fun foo() {
|
|
Comp2()
|
|
}
|
|
}
|
|
|
|
enum class E {
|
|
X {
|
|
|
|
};
|
|
|
|
fun foo() {
|
|
<!UNRESOLVED_REFERENCE!>X<!>()
|
|
}
|
|
}
|