[FIR] Report INVISIBLE_REFERENCE on the first unresolved qualifier

#KT-61719 Fixed
This commit is contained in:
Kirill Rakhman
2023-09-08 14:34:12 +02:00
committed by Space Team
parent 2127b2ce68
commit 2566dabfce
24 changed files with 67 additions and 118 deletions
@@ -1,19 +0,0 @@
// FILE: p/Foo.java
package p;
public class Foo {
protected static class Nested {}
}
// FILE: foo.kt
package a
import p.Foo
import p.Foo.Nested
class Bar : Foo() {
protected fun foo(): Nested? = null
}
private fun foo(): <!INVISIBLE_REFERENCE!>Nested<!>? = null
private fun bar(): <!INVISIBLE_REFERENCE!>p.Foo.Nested<!>? = null
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// FILE: p/Foo.java
package p;
@@ -16,4 +16,4 @@ class Bar : <!EXPOSED_SUPER_CLASS, INVISIBLE_REFERENCE, INVISIBLE_REFERENCE!>Foo
}
private fun foo(): <!INVISIBLE_REFERENCE!>Nested<!>? = null
private fun bar(): <!INVISIBLE_REFERENCE!>p.Foo.Nested<!>? = null
private fun bar(): p.<!INVISIBLE_REFERENCE!>Foo<!>.Nested? = null