[FE] Add OptIn annotation to whitelist of annotation checker
It's valid to have `@OptIn` only on `expect` declaration. ^KT-61373
This commit is contained in:
committed by
Space Team
parent
8bcd1f4efa
commit
673b4b4d52
Vendored
+1
@@ -17,6 +17,7 @@ annotation class MyOptIn
|
||||
@MyOptIn
|
||||
@WasExperimental(MyOptIn::class)
|
||||
@kotlin.internal.RequireKotlin(version = "1.8")
|
||||
@OptIn(MyOptIn::class)
|
||||
expect fun skippedAnnotationsOnExpectOnly()
|
||||
|
||||
// MODULE: m1-jvm()()(m1-common)
|
||||
|
||||
+1
@@ -17,6 +17,7 @@ annotation class MyOptIn
|
||||
@MyOptIn
|
||||
@WasExperimental(MyOptIn::class)
|
||||
@kotlin.internal.RequireKotlin(version = "1.8")
|
||||
@OptIn(MyOptIn::class)
|
||||
expect fun skippedAnnotationsOnExpectOnly()
|
||||
|
||||
// MODULE: m1-jvm()()(m1-common)
|
||||
|
||||
Reference in New Issue
Block a user