K2: Add test describing the state for KT-59789
This commit is contained in:
committed by
Space Team
parent
62d8d04b51
commit
b18b2abe05
+6
@@ -14424,6 +14424,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/imports/RenameOnImport.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("renamedImportInDifferentFile.kt")
|
||||
public void testRenamedImportInDifferentFile() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/renamedImportInDifferentFile.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("StarImportFromObject.kt")
|
||||
public void testStarImportFromObject() throws Exception {
|
||||
|
||||
+6
@@ -14424,6 +14424,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/imports/RenameOnImport.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("renamedImportInDifferentFile.kt")
|
||||
public void testRenamedImportInDifferentFile() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/renamedImportInDifferentFile.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("StarImportFromObject.kt")
|
||||
public void testStarImportFromObject() throws Exception {
|
||||
|
||||
+6
@@ -14424,6 +14424,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/imports/RenameOnImport.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("renamedImportInDifferentFile.kt")
|
||||
public void testRenamedImportInDifferentFile() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/renamedImportInDifferentFile.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("StarImportFromObject.kt")
|
||||
public void testStarImportFromObject() throws Exception {
|
||||
|
||||
+6
@@ -14430,6 +14430,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/imports/RenameOnImport.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("renamedImportInDifferentFile.kt")
|
||||
public void testRenamedImportInDifferentFile() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/renamedImportInDifferentFile.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("StarImportFromObject.kt")
|
||||
public void testStarImportFromObject() throws Exception {
|
||||
|
||||
+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)
|
||||
}
|
||||
Generated
+6
@@ -14430,6 +14430,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/RenameOnImport.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("renamedImportInDifferentFile.kt")
|
||||
public void testRenamedImportInDifferentFile() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/imports/renamedImportInDifferentFile.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("StarImportFromObject.kt")
|
||||
public void testStarImportFromObject() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user