Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/intellij/lambdaForKfunction.kt
T
2023-03-09 08:52:46 +00:00

10 lines
182 B
Kotlin
Vendored

// WITH_REFLECT
import kotlin.reflect.KFunction0
fun foo(arg: KFunction0<Unit>) {}
fun main() {
foo(fun() {}) // K1: TYPE_MISMATCH, K2: ok in compile-time & CCE at run-time
}