Files
Denis.Zharkov f37dc27974 K2: Fix incorrect UNRESOLVED_REFERENCE after aliased import in other file
The problem is actually caused by 60f09f6512
It happened because we've been caching package scope using FqName key,
so once one file contains aliased import it would work like other file
contains it, too.

So, the fix is adding excludedNames to the key, too.

^KT-59789 Fixed
2023-07-01 16:27:23 +00:00

24 lines
407 B
Kotlin
Vendored

// FIR_IDENTICAL
// ISSUE: KT-59789
// FILE: a/A.java
package a;
public interface A {}
// FILE: first.kt
package b
import b.DependencyAnalyzerDependency as Dependency
fun foo(d: Dependency) {}
// FILE: main.kt
package b
import a.A
interface DependencyAnalyzerDependency : A {
val parent: DependencyAnalyzerDependency? // Should be resolved
}
fun bar(d: DependencyAnalyzerDependency) {
foo(d)
}