mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
16 lines
261 B
Kotlin
16 lines
261 B
Kotlin
// PROBLEM: none
|
|
// WITH_STDLIB
|
|
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
|
|
|
|
@RequiresOptIn
|
|
annotation class Marker
|
|
|
|
@Marker
|
|
inline fun foo(x: Int): Int = x + 1
|
|
|
|
@OptIn(Marker::class<caret>)
|
|
fun bar(x: Int): Int {
|
|
val y = foo(x)
|
|
return y * 2
|
|
}
|