Report EXPERIMENTAL_ANNOTATION_ON_WRONG_TARGET without explicit @Target

#KT-48349 Fixed
This commit is contained in:
Mikhail Glukhikh
2021-08-20 20:07:18 +03:00
committed by TeamCityServer
parent 865fccdd29
commit 7b0e5927cb
8 changed files with 102 additions and 1 deletions
@@ -35426,6 +35426,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
public void testWasExperimental() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/wasExperimental.kt");
}
@Test
@TestMetadata("wrongTargetsWithoutExplicitTarget.kt")
public void testWrongTargetsWithoutExplicitTarget() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/wrongTargetsWithoutExplicitTarget.kt");
}
}
@Nested