Files
kotlin/compiler/testData/cli/js/inlineCycle.kt
2018-12-21 16:13:42 +03:00

20 lines
218 B
Kotlin
Vendored

inline fun a(l: () -> Unit) {
b(l)
//check that nested not recognized as cycle
c {
c {
}
}
}
inline fun b(p: () -> Unit) {
p()
a(p)
}
inline fun c(p: () -> Unit) {
p()
}