Add one more test for KT-61959

Generate FE tests
This commit is contained in:
Aleksandra.Arsenteva
2023-11-13 12:07:18 +03:00
committed by Space Team
parent a3f5db566c
commit 83c90d0e4f
6 changed files with 48 additions and 0 deletions
@@ -37192,6 +37192,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/typeParameters/outerTypeParameterAsBound.kt");
}
@Test
@TestMetadata("outerTypeParameterAsSupertype.kt")
public void testOuterTypeParameterAsSupertype() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeParameters/outerTypeParameterAsSupertype.kt");
}
@Test
@TestMetadata("propertyTypeParameters.kt")
public void testPropertyTypeParameters() throws Exception {
@@ -37192,6 +37192,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/typeParameters/outerTypeParameterAsBound.kt");
}
@Test
@TestMetadata("outerTypeParameterAsSupertype.kt")
public void testOuterTypeParameterAsSupertype() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeParameters/outerTypeParameterAsSupertype.kt");
}
@Test
@TestMetadata("propertyTypeParameters.kt")
public void testPropertyTypeParameters() throws Exception {
@@ -35078,6 +35078,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/typeParameters/outerTypeParameterAsBound.kt");
}
@Test
@TestMetadata("outerTypeParameterAsSupertype.kt")
public void testOuterTypeParameterAsSupertype() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeParameters/outerTypeParameterAsSupertype.kt");
}
@Test
@TestMetadata("propertyTypeParameters.kt")
public void testPropertyTypeParameters() throws Exception {
@@ -35198,6 +35198,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/typeParameters/outerTypeParameterAsBound.kt");
}
@Test
@TestMetadata("outerTypeParameterAsSupertype.kt")
public void testOuterTypeParameterAsSupertype() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeParameters/outerTypeParameterAsSupertype.kt");
}
@Test
@TestMetadata("propertyTypeParameters.kt")
public void testPropertyTypeParameters() throws Exception {
@@ -0,0 +1,18 @@
// FIR_IDENTICAL
package test
interface OuterParam
class A: OuterParam
class Outer<OuterParam> {
class Nested: OuterParam {
fun foo(): OuterParam = A()
}
}
fun main() {
val c: OuterParam = Outer.Nested().foo()
}
@@ -37192,6 +37192,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/typeParameters/outerTypeParameterAsBound.kt");
}
@Test
@TestMetadata("outerTypeParameterAsSupertype.kt")
public void testOuterTypeParameterAsSupertype() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeParameters/outerTypeParameterAsSupertype.kt");
}
@Test
@TestMetadata("propertyTypeParameters.kt")
public void testPropertyTypeParameters() throws Exception {