Files
kotlin-fork/compiler/testData/diagnostics/tests/testsWithExplicitApi/localFunctions.kt
T
2021-10-27 19:42:52 +03:00

19 lines
302 B
Kotlin
Vendored

// FIR_IDENTICAL
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>fun run<!>(b: () -> Unit) {}
<!NO_EXPLICIT_VISIBILITY_IN_API_MODE!>fun test<!>() {
run {
}
fun localFun() {}
localFun()
run(::localFun)
val localFun2 = fun() {}
run(localFun2)
val lambda = {}
run(lambda)
}