Fix internal compiler error on importing invisible fake reference

Note that this is not relevant for LOCAL/INHERITED visibilities:
  - for LOCAL visibility it's impossible to have a qualifier
  - INHERITED is an intermediate visibility, we enhance it later
    (see resolveUnknownVisibilityForMember)

 #KT-20356 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-06-25 02:11:49 +03:00
parent 84b26fc61d
commit 600d135786
5 changed files with 46 additions and 1 deletions
@@ -0,0 +1,16 @@
// FILE: A.kt
import B.<!INVISIBLE_REFERENCE!>foo<!>
fun test() {
<!INVISIBLE_MEMBER!>foo<!>
}
// FILE: B.kt
object B : C<String>()
// FILE: C.kt
open class C<T> {
private var foo: String = "abc"
}