FIR: implement resolve of unqualified enum references in when
See KT-16768
This commit is contained in:
committed by
teamcity
parent
f35b4b7515
commit
981f8b1871
+52
@@ -4122,6 +4122,58 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class UnqualifiedEnum {
|
||||
@Test
|
||||
public void testAllFilesPresentInUnqualifiedEnum() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("correctJava.kt")
|
||||
public void testCorrectJava() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum/correctJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("incorrectJava.kt")
|
||||
public void testIncorrectJava() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum/incorrectJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nested.kt")
|
||||
public void testNested() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum/nested.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notInsideBranches.kt")
|
||||
public void testNotInsideBranches() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum/notInsideBranches.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("priority.kt")
|
||||
public void testPriority() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum/priority.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeAlias.kt")
|
||||
public void testTypeAlias() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum/typeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unqualifiedEnum.kt")
|
||||
public void testUnqualifiedEnum() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/unqualifiedEnum/unqualifiedEnum.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/visibility")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user