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:
+22
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user