K2: Add test describing the state for KT-59789

This commit is contained in:
Denis.Zharkov
2023-06-30 11:05:28 +03:00
committed by Space Team
parent 62d8d04b51
commit b18b2abe05
7 changed files with 74 additions and 0 deletions
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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)
}
@@ -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 {