Transform VisibilityError diagnostic for callable references to further report it on the corresponding argument of a base call

^KT-46437 Fixed
This commit is contained in:
Victor Petukhov
2021-10-04 19:45:20 +03:00
parent e34b2d1850
commit 02d06b6390
10 changed files with 76 additions and 0 deletions
@@ -0,0 +1,8 @@
fun box(): String {
if (true) X::<!UNRESOLVED_REFERENCE!>y<!> else null
return "OK"
}
object X {
private val y = null
}
@@ -0,0 +1,8 @@
fun box(): String {
if (true) <!INVISIBLE_MEMBER!>X::y<!> else null
return "OK"
}
object X {
private val y = null
}
@@ -0,0 +1,11 @@
package
public fun box(): kotlin.String
public object X {
private constructor X()
private final val y: kotlin.Nothing? = null
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}