FIR: fix API mode checker for local functions

This commit is contained in:
Tianyu Geng
2021-10-21 14:53:54 -07:00
committed by Mikhail Glukhikh
parent 31b7248769
commit a969e5af50
9 changed files with 55 additions and 5 deletions
@@ -0,0 +1,18 @@
// 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)
}