Add one more test for KT-61959
Generate FE tests
This commit is contained in:
committed by
Space Team
parent
a3f5db566c
commit
83c90d0e4f
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+18
@@ -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()
|
||||
}
|
||||
Generated
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user