[FIR] Consider anonymous object declarations in classDeclarationsStack in transformers

This commit is contained in:
Ivan Kochurkin
2021-11-12 12:33:47 +03:00
committed by TeamCityServer
parent b83ed7a6ed
commit 3beb447e85
12 changed files with 76 additions and 26 deletions
@@ -11243,6 +11243,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/generics"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("anonymousObjectSupertypeWithTypeParameterFromFunction.kt")
public void testAnonymousObjectSupertypeWithTypeParameterFromFunction() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/anonymousObjectSupertypeWithTypeParameterFromFunction.kt");
}
@Test
@TestMetadata("argumentsForT.kt")
public void testArgumentsForT() throws Exception {
@@ -11352,9 +11358,9 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
}
@Test
@TestMetadata("localClassWithTypeArgumentFromFunction.kt")
public void testLocalClassWithTypeArgumentFromFunction() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/localClassWithTypeArgumentFromFunction.kt");
@TestMetadata("localClassTypeRefWithTypeParameterFromFunction.kt")
public void testLocalClassTypeRefWithTypeParameterFromFunction() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/localClassTypeRefWithTypeParameterFromFunction.kt");
}
@Test