[FIR] Fix kotlin version check in annotations
@RequireKotlin has more than one string parameter, so you need to check 'version' only
This commit is contained in:
committed by
teamcityserver
parent
3a22761d02
commit
ebf6ce133b
+6
@@ -1343,6 +1343,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/RecursivelyIncorrectlyAnnotatedParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("requireKotlin.kt")
|
||||
public void testRequireKotlin() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/requireKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("RetentionsOfAnnotationWithExpressionTarget_after.kt")
|
||||
public void testRetentionsOfAnnotationWithExpressionTarget_after() throws Exception {
|
||||
|
||||
+6
@@ -1343,6 +1343,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/RecursivelyIncorrectlyAnnotatedParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("requireKotlin.kt")
|
||||
public void testRequireKotlin() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/annotations/requireKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("RetentionsOfAnnotationWithExpressionTarget_after.kt")
|
||||
public void testRetentionsOfAnnotationWithExpressionTarget_after() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user