Michael Friend
07/02/2025, 4:06 PMRaise<E>
receiver, then within that lambda i call a function that takes a context(Raise<E>) ()->T
, calling raise(...)
within the inner lambda block has ambiguity on whether it should refer to Raise<E>.raise()
on the outer receiver or context(_: Raise<E>) raise()
on the inner context and the compiler seems to always choose the outer receiver over the inner context.
I would expect it to work like having nested lambda with receiver blocks where it makes the call on the nearest/innermost matching receiver and just include available context params in that searchAlejandro Serrano.Mena
07/02/2025, 4:31 PMMichael Friend
07/02/2025, 4:40 PMMichael Friend
07/02/2025, 4:46 PM