K2: add test for already fixed qualifier resolve issue
#KT-57845
This commit is contained in:
committed by
Space Team
parent
3debf36d60
commit
4b7234d27e
+6
@@ -27110,6 +27110,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt575.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57845.kt")
|
||||
public void testKt57845() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt57845.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt58.kt")
|
||||
public void testKt58() throws Exception {
|
||||
|
||||
+6
@@ -27110,6 +27110,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt575.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57845.kt")
|
||||
public void testKt57845() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt57845.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt58.kt")
|
||||
public void testKt58() throws Exception {
|
||||
|
||||
+6
@@ -27110,6 +27110,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt575.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57845.kt")
|
||||
public void testKt57845() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt57845.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt58.kt")
|
||||
public void testKt58() throws Exception {
|
||||
|
||||
+6
@@ -27122,6 +27122,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt575.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57845.kt")
|
||||
public void testKt57845() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt57845.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt58.kt")
|
||||
public void testKt58() throws Exception {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
// FIR_IDENTICAL
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
// FILE: priv/members/check/MyJClass.java
|
||||
package priv.members.check;
|
||||
|
||||
public class MyJClass {
|
||||
public static String O = "O";
|
||||
public String k() { return "K"; }
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
fun test(): String {
|
||||
val k: priv.members.check.MyJClass
|
||||
k = priv.members.check.MyJClass()
|
||||
|
||||
val o = priv.members.check.MyJClass.O
|
||||
return o + k.k()
|
||||
}
|
||||
Generated
+6
@@ -28702,6 +28702,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt575.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt57845.kt")
|
||||
public void testKt57845() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt57845.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt58.kt")
|
||||
public void testKt58() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user