Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/regression/kt34391.kt
T

20 lines
340 B
Kotlin
Vendored

// FIR_IDENTICAL
fun main() {
val list = listOf(A())
list.forEach(A::<!OPT_IN_USAGE_ERROR!>foo<!>)
list.forEach {
it.<!OPT_IN_USAGE_ERROR!>foo<!>()
}
}
class A {
@ExperimentalTime
fun foo() {
println("a")
}
}
@RequiresOptIn(level = RequiresOptIn.Level.ERROR)
annotation class ExperimentalTime