Files
kotlin/compiler/testData/cli/js/inlineCycle.kt
2015-05-21 10:06:02 +03:00

20 lines
218 B
Kotlin
Vendored

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