Files
2023-11-03 14:26:45 +00:00

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>()
}