[Tests] Add regression test for #KT-64702
This commit is contained in:
committed by
Space Team
parent
533ed5c622
commit
10d6d95ee8
+6
@@ -17814,6 +17814,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
public void testTopLevelCapturingInsideReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/topLevelCapturingInsideReturnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("upperBoundOfCapturedInProjectionInOutPosition.kt")
|
||||
public void testUpperBoundOfCapturedInProjectionInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/upperBoundOfCapturedInProjectionInOutPosition.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -17814,6 +17814,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
public void testTopLevelCapturingInsideReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/topLevelCapturingInsideReturnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("upperBoundOfCapturedInProjectionInOutPosition.kt")
|
||||
public void testUpperBoundOfCapturedInProjectionInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/upperBoundOfCapturedInProjectionInOutPosition.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -17808,6 +17808,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
public void testTopLevelCapturingInsideReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/topLevelCapturingInsideReturnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("upperBoundOfCapturedInProjectionInOutPosition.kt")
|
||||
public void testUpperBoundOfCapturedInProjectionInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/upperBoundOfCapturedInProjectionInOutPosition.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -17814,6 +17814,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
public void testTopLevelCapturingInsideReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/topLevelCapturingInsideReturnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("upperBoundOfCapturedInProjectionInOutPosition.kt")
|
||||
public void testUpperBoundOfCapturedInProjectionInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/upperBoundOfCapturedInProjectionInOutPosition.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// ISSUE: KT-64702
|
||||
class Box<T : CharSequence>(var value: T)
|
||||
|
||||
fun test(box: Box<in String>) {
|
||||
box.value.length
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// ISSUE: KT-64702
|
||||
class Box<T : CharSequence>(var value: T)
|
||||
|
||||
fun test(box: Box<in String>) {
|
||||
box.value.<!UNRESOLVED_REFERENCE!>length<!>
|
||||
}
|
||||
Generated
+6
@@ -17814,6 +17814,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
public void testTopLevelCapturingInsideReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/topLevelCapturingInsideReturnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("upperBoundOfCapturedInProjectionInOutPosition.kt")
|
||||
public void testUpperBoundOfCapturedInProjectionInOutPosition() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/upperBoundOfCapturedInProjectionInOutPosition.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user