Why is can't it figure out the type? I would assume it is quite clear, no?
It also doesn't work if it's a normal lambda instead of a extension function
g
gildor
05/31/2019, 5:15 PM
Why do you think that information is enough? This snippet don't have any type information that may be used for type inference, maybe you have some sample, otherwise there is not enough context to understand what is going on there
k
Kroppeb
05/31/2019, 5:29 PM
The lambda has a return type no?
Or is it doesn't know if it is
Int
,
Any
,
Int?
or
Any?
?
Ok, It got worse
k
karelpeeters
05/31/2019, 7:31 PM
He's saying you're not giving us enough information.