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
17 lines
280 B
Kotlin
17 lines
280 B
Kotlin
// WITH_STDLIB
|
|
// COMPILER_ARGUMENTS: -opt-in=kotlin.RequiresOptIn
|
|
|
|
@RequiresOptIn
|
|
annotation class Marker
|
|
|
|
open class FooBase
|
|
|
|
@Marker
|
|
class Foo : FooBase()
|
|
|
|
@OptIn(Marker::class)
|
|
fun makeFoo(x: FooBase? = null): FooBase = Foo()
|
|
|
|
@OptIn(<caret>Marker::class)
|
|
val foo = makeFoo()
|