mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
18 lines
418 B
Kotlin
18 lines
418 B
Kotlin
// "Opt in for 'Ann' on 'test'" "false"
|
|
// IGNORE_K1
|
|
// 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
|
|
object Foo {
|
|
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
|
|
private annotation class Ann
|
|
|
|
@Ann
|
|
fun bar() {}
|
|
}
|
|
|
|
fun test() {
|
|
Foo.bar<caret>()
|
|
}
|