mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Changed WITH_RUNTIME test option to WITH_STDLIB (as required for `master` branch) in the fix for "Unnecessary OptIn annotation" false positive fix. ^KTIJ-20550 Fixed GitOrigin-RevId: f5fbcf3fbeb262914a595716a62f94252d98bd82
20 lines
261 B
Kotlin
20 lines
261 B
Kotlin
// PROBLEM: none
|
|
// WITH_STDLIB
|
|
// COMPILER_ARGUMENTS: -opt-in=kotlin.RequiresOptIn
|
|
|
|
@RequiresOptIn
|
|
annotation class Marker
|
|
|
|
@Marker
|
|
class Foo {
|
|
fun f() {}
|
|
}
|
|
|
|
@OptIn(Marker::class)
|
|
val foo = Foo()
|
|
|
|
@OptIn(<caret>Marker::class)
|
|
fun bar() {
|
|
val x = foo
|
|
}
|