[tests] Add code examples from exploration of KT-62239

This commit is contained in:
Stanislav Ruban
2023-11-13 19:55:29 +02:00
committed by Space Team
parent d7d42134df
commit 73aaa1ce28
9 changed files with 2052 additions and 0 deletions
@@ -11620,6 +11620,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/enum/enumSubjectTypeCheck.kt");
}
@Test
@TestMetadata("EnumWOParenthesesConsistencyNestedScope.kt")
public void testEnumWOParenthesesConsistencyNestedScope() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/EnumWOParenthesesConsistencyNestedScope.kt");
}
@Test
@TestMetadata("EnumWOParenthesesConsistencyTopLevel.kt")
public void testEnumWOParenthesesConsistencyTopLevel() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/EnumWOParenthesesConsistencyTopLevel.kt");
}
@Test
@TestMetadata("enumWithAnnotationKeyword.kt")
public void testEnumWithAnnotationKeyword() throws Exception {
@@ -11620,6 +11620,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/enum/enumSubjectTypeCheck.kt");
}
@Test
@TestMetadata("EnumWOParenthesesConsistencyNestedScope.kt")
public void testEnumWOParenthesesConsistencyNestedScope() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/EnumWOParenthesesConsistencyNestedScope.kt");
}
@Test
@TestMetadata("EnumWOParenthesesConsistencyTopLevel.kt")
public void testEnumWOParenthesesConsistencyTopLevel() throws Exception {
runTest("compiler/testData/diagnostics/tests/enum/EnumWOParenthesesConsistencyTopLevel.kt");
}
@Test
@TestMetadata("enumWithAnnotationKeyword.kt")
public void testEnumWithAnnotationKeyword() throws Exception {