K1/K2: add test confirming the behavior of KT-61694 case
This commit is contained in:
committed by
Space Team
parent
20f74c22d7
commit
7c53387fc4
+6
@@ -38412,6 +38412,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/importMemberFromJavaViaAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importNestedTypeFromTypeAlias.kt")
|
||||
public void testImportNestedTypeFromTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/importNestedTypeFromTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inGenerics.kt")
|
||||
public void testInGenerics() throws Exception {
|
||||
|
||||
+6
@@ -38412,6 +38412,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/importMemberFromJavaViaAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importNestedTypeFromTypeAlias.kt")
|
||||
public void testImportNestedTypeFromTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/importNestedTypeFromTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inGenerics.kt")
|
||||
public void testInGenerics() throws Exception {
|
||||
|
||||
+6
@@ -36180,6 +36180,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/importMemberFromJavaViaAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importNestedTypeFromTypeAlias.kt")
|
||||
public void testImportNestedTypeFromTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/importNestedTypeFromTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inGenerics.kt")
|
||||
public void testInGenerics() throws Exception {
|
||||
|
||||
+6
@@ -36300,6 +36300,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/importMemberFromJavaViaAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importNestedTypeFromTypeAlias.kt")
|
||||
public void testImportNestedTypeFromTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/importNestedTypeFromTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inGenerics.kt")
|
||||
public void testInGenerics() throws Exception {
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// ISSUE: KT-61694
|
||||
|
||||
// FILE: a.kt
|
||||
|
||||
package c
|
||||
class C {
|
||||
class Nested
|
||||
}
|
||||
|
||||
typealias TA = C
|
||||
|
||||
// FILE: b.kt
|
||||
|
||||
import c.TA.Nested
|
||||
|
||||
val x: <!UNRESOLVED_REFERENCE!>Nested<!>? = null
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// ISSUE: KT-61694
|
||||
|
||||
// FILE: a.kt
|
||||
|
||||
package c
|
||||
class C {
|
||||
class Nested
|
||||
}
|
||||
|
||||
typealias TA = C
|
||||
|
||||
// FILE: b.kt
|
||||
|
||||
import c.TA.Nested
|
||||
|
||||
val x: Nested? = null
|
||||
Generated
+6
@@ -38412,6 +38412,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/importMemberFromJavaViaAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importNestedTypeFromTypeAlias.kt")
|
||||
public void testImportNestedTypeFromTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/importNestedTypeFromTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inGenerics.kt")
|
||||
public void testInGenerics() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user