[FIR] Only inherit class type parameters if inner class
Nested classes which are not inner class should not be able to access type parameters of the outer class. Make sure access is not available when resolving super types. #KT-54748 Fixed
This commit is contained in:
+6
@@ -19418,6 +19418,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/inner/nestedClassNotAllowed_before.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassTypeParameterNameCollision.kt")
|
||||
public void testNestedClassTypeParameterNameCollision() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inner/nestedClassTypeParameterNameCollision.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedObject.kt")
|
||||
public void testNestedObject() throws Exception {
|
||||
|
||||
+6
@@ -19418,6 +19418,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/inner/nestedClassNotAllowed_before.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassTypeParameterNameCollision.kt")
|
||||
public void testNestedClassTypeParameterNameCollision() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inner/nestedClassTypeParameterNameCollision.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedObject.kt")
|
||||
public void testNestedObject() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user