[Test] Add regression test for KT-66638
This commit is contained in:
committed by
Space Team
parent
9d2298b326
commit
f18aa5e70f
+6
@@ -31965,6 +31965,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
public class Resolve {
|
public class Resolve {
|
||||||
|
@Test
|
||||||
|
@TestMetadata("accessOnComplexProjectedReceiver.kt")
|
||||||
|
public void testAccessOnComplexProjectedReceiver() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/resolve/accessOnComplexProjectedReceiver.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAllFilesPresentInResolve() {
|
public void testAllFilesPresentInResolve() {
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||||
|
|||||||
+6
@@ -31965,6 +31965,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
public class Resolve {
|
public class Resolve {
|
||||||
|
@Test
|
||||||
|
@TestMetadata("accessOnComplexProjectedReceiver.kt")
|
||||||
|
public void testAccessOnComplexProjectedReceiver() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/resolve/accessOnComplexProjectedReceiver.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAllFilesPresentInResolve() {
|
public void testAllFilesPresentInResolve() {
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||||
|
|||||||
+6
@@ -29651,6 +29651,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
public class Resolve {
|
public class Resolve {
|
||||||
|
@Test
|
||||||
|
@TestMetadata("accessOnComplexProjectedReceiver.kt")
|
||||||
|
public void testAccessOnComplexProjectedReceiver() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/resolve/accessOnComplexProjectedReceiver.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAllFilesPresentInResolve() {
|
public void testAllFilesPresentInResolve() {
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||||
|
|||||||
+6
@@ -29663,6 +29663,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
public class Resolve {
|
public class Resolve {
|
||||||
|
@Test
|
||||||
|
@TestMetadata("accessOnComplexProjectedReceiver.kt")
|
||||||
|
public void testAccessOnComplexProjectedReceiver() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/resolve/accessOnComplexProjectedReceiver.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAllFilesPresentInResolve() {
|
public void testAllFilesPresentInResolve() {
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// ISSUE: KT-66638
|
||||||
|
|
||||||
|
class Super<T1, T2>
|
||||||
|
data class Child<T : Super<String, Child<T>>>(val foo: String)
|
||||||
|
|
||||||
|
fun foo(child: Child<*>) {
|
||||||
|
child.foo
|
||||||
|
}
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
// ISSUE: KT-66638
|
||||||
|
|
||||||
|
class Super<T1, T2>
|
||||||
|
data class Child<T : Super<String, Child<T>>>(val foo: String)
|
||||||
|
|
||||||
|
fun foo(child: Child<*>) {
|
||||||
|
child.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>foo<!>
|
||||||
|
}
|
||||||
Generated
+6
@@ -31965,6 +31965,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
public class Resolve {
|
public class Resolve {
|
||||||
|
@Test
|
||||||
|
@TestMetadata("accessOnComplexProjectedReceiver.kt")
|
||||||
|
public void testAccessOnComplexProjectedReceiver() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/resolve/accessOnComplexProjectedReceiver.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAllFilesPresentInResolve() {
|
public void testAllFilesPresentInResolve() {
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user