mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
^KTIJ-27132 Fixed closes https://github.com/JetBrains/intellij-community/pull/2603 GitOrigin-RevId: 106eaaa98d93e04a958cca75b2e3552c34bab681
18 lines
451 B
Kotlin
18 lines
451 B
Kotlin
// "Opt in for 'Ann' on 'test'" "false"
|
|
// IGNORE_K2
|
|
// ERROR: This declaration needs opt-in. Its usage must be marked with '@Foo.Ann' or '@OptIn(Foo.Ann::class)'
|
|
// ACTION: Add import for 'Foo.bar'
|
|
// ACTION: Convert to run
|
|
// ACTION: Convert to with
|
|
// ACTION: Introduce import alias
|
|
object Foo {
|
|
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
|
|
private annotation class Ann
|
|
|
|
@Ann
|
|
fun bar() {}
|
|
}
|
|
|
|
fun test() {
|
|
Foo.bar<caret>()
|
|
} |