mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
13 lines
218 B
Kotlin
13 lines
218 B
Kotlin
// PROBLEM: none
|
|
// WITH_STDLIB
|
|
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
|
|
|
|
@RequiresOptIn
|
|
annotation class Marker
|
|
|
|
@Marker
|
|
fun foo(x: Int): Int = x + 1
|
|
|
|
@OptIn(<caret>Marker::class)
|
|
fun bar(n: Int) = foo(n)
|