KMP: Put "prohbit expect/actual different annotations" under the flag

^KT-61668 Fixed

Review: https://jetbrains.team/p/kt/reviews/12062/timeline
This commit is contained in:
Nikita Bobko
2023-09-07 14:04:22 +02:00
committed by Space Team
parent 3a0c4d1087
commit 6868c95263
7 changed files with 54 additions and 8 deletions
@@ -0,0 +1,22 @@
// FIR_IDENTICAL
// LANGUAGE: -MultiplatformRestrictions
// MODULE: m1-common
// FILE: common.kt
annotation class Ann
@Ann
expect class AnnotationOnExpectOnly
expect class AnnotationInside {
@Ann
fun onlyOnExpect()
}
// MODULE: m1-jvm()()(m1-common)
// FILE: jvm.kt
actual class AnnotationOnExpectOnly
actual class AnnotationInside {
actual fun onlyOnExpect() {}
}