KMP: Put "prohibit expect actual OptIn 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-05 15:50:13 +02:00
committed by Space Team
parent 0922833b46
commit 172c04c96a
6 changed files with 45 additions and 6 deletions
@@ -0,0 +1,19 @@
// FIR_IDENTICAL
// LANGUAGE: -MultiplatformRestrictions
// WITH_STDLIB
// MODULE: m1-common
// FILE: common.kt
@file:OptIn(ExperimentalMultiplatform::class)
expect annotation class ActualOnly
@RequiresOptIn
expect annotation class Both
// MODULE: m1-jvm()()(m1-common)
// FILE: jvm.kt
@RequiresOptIn
actual annotation class ActualOnly
@RequiresOptIn
actual annotation class Both