mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
20 lines
218 B
Kotlin
Vendored
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()
|
|
} |