Report error on indirect inline cycles
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user