[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:
committed by
Space Team
parent
efad248d7d
commit
5e49b472f8
Vendored
+7
-1
@@ -20,6 +20,10 @@ annotation class MyOptIn
|
||||
@OptIn(MyOptIn::class)
|
||||
expect fun skippedAnnotationsOnExpectOnly()
|
||||
|
||||
@OptIn(ExperimentalMultiplatform::class)
|
||||
@kotlin.jvm.ImplicitlyActualizedByJvmDeclaration
|
||||
expect class ImplicitlyActualizedByJvmDeclarationOnExpectOnly
|
||||
|
||||
// MODULE: m1-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
package kotlin
|
||||
@@ -27,4 +31,6 @@ package kotlin
|
||||
@OptIn(ExperimentalMultiplatform::class)
|
||||
actual annotation class OptionalExpectationOnExpectOnly
|
||||
|
||||
actual fun skippedAnnotationsOnExpectOnly() {}
|
||||
actual fun skippedAnnotationsOnExpectOnly() {}
|
||||
|
||||
actual class ImplicitlyActualizedByJvmDeclarationOnExpectOnly
|
||||
|
||||
+7
-1
@@ -20,6 +20,10 @@ annotation class MyOptIn
|
||||
@OptIn(MyOptIn::class)
|
||||
expect fun skippedAnnotationsOnExpectOnly()
|
||||
|
||||
@OptIn(ExperimentalMultiplatform::class)
|
||||
@kotlin.jvm.ImplicitlyActualizedByJvmDeclaration
|
||||
expect class ImplicitlyActualizedByJvmDeclarationOnExpectOnly
|
||||
|
||||
// MODULE: m1-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
package kotlin
|
||||
@@ -27,4 +31,6 @@ package kotlin
|
||||
@OptIn(ExperimentalMultiplatform::class)
|
||||
actual annotation class OptionalExpectationOnExpectOnly
|
||||
|
||||
actual fun skippedAnnotationsOnExpectOnly() {}
|
||||
actual fun skippedAnnotationsOnExpectOnly() {}
|
||||
|
||||
actual class ImplicitlyActualizedByJvmDeclarationOnExpectOnly
|
||||
|
||||
Reference in New Issue
Block a user