K2: Add test describing the state for KT-59789
This commit is contained in:
committed by
Space Team
parent
62d8d04b51
commit
b18b2abe05
+22
@@ -0,0 +1,22 @@
|
||||
// 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: <!UNRESOLVED_REFERENCE!>DependencyAnalyzerDependency<!>? // Should be resolved
|
||||
}
|
||||
|
||||
fun bar(d: <!UNRESOLVED_REFERENCE!>DependencyAnalyzerDependency<!>) {
|
||||
foo(d)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user