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

20 lines
301 B
Kotlin
Vendored

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