mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
18 lines
235 B
Kotlin
18 lines
235 B
Kotlin
// PROBLEM: none
|
|
// WITH_STDLIB
|
|
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
|
|
|
|
@RequiresOptIn
|
|
annotation class Marker
|
|
|
|
@Marker
|
|
class A {
|
|
fun foo() {}
|
|
}
|
|
|
|
@OptIn(<caret>Marker::class)
|
|
fun bar() {
|
|
val a = A()
|
|
a.foo()
|
|
}
|