https://kotlinlang.org logo
Title
b

bartvh

11/14/2018, 10:44 AM
Is it not possible to call an inline lambda with another inline lambda as argument? Conceptually I think it should be, but I guess the compiler does not actually support it? I get an
illegal usage of inline argument block
error
a

Andreas Sinz

11/14/2018, 1:06 PM
Conceptually it works, only if body is `crossinline`d and the parameter of enter is `inline`d too (which is not the case here)
👍 1
why do you need two different function parameters?
b

bartvh

11/15/2018, 1:58 PM
I don't actually, so you can ignore the concept of this function
k

karelpeeters

11/15/2018, 2:00 PM
Still, it's something that could be implemented by the compiler.