Open WiseIndian opened 4 years ago
It can be done with white-box macros. Maybe make it low priority, and focus on other use cases.
Another subtlety with inference in Dotty is that you can always produce a union type A | B
, even if A
and B
are disjoint.
thanks for the feedback.
It would be nice if we could create coroutines like so:
so that this code would return a coroutine with the tightest type (Coroutine[A] in this case) out of the
yieldval
andjoin
operations within that coroutine body.