f37dc27974
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
24 lines
407 B
Kotlin
Vendored
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)
|
|
}
|