[FE, IR] Allow @ImplicitlyActualizedByJvmDeclaration to be set only on expect

@ImplicitlyActualizedByJvmDeclaration is the only one
OptionalExpectation annotation which works correctly when set only on
`expect`. All other (like @JvmName, @JsName) - not, so warning for them
must be reported.

^KT-61725 Fixed
This commit is contained in:
Roman Efremov
2023-09-06 12:30:06 +02:00
committed by Space Team
parent efad248d7d
commit 5e49b472f8
5 changed files with 18 additions and 4 deletions
@@ -18,6 +18,7 @@ object AbstractExpectActualAnnotationMatchChecker {
private val SKIPPED_CLASS_IDS = setOf(
StandardClassIds.Annotations.Deprecated,
StandardClassIds.Annotations.DeprecatedSinceKotlin,
StandardClassIds.Annotations.ImplicitlyActualizedByJvmDeclaration,
StandardClassIds.Annotations.OptionalExpectation,
StandardClassIds.Annotations.RequireKotlin,
StandardClassIds.Annotations.SinceKotlin,