union
union copied to clipboard
Sink types are not skipped resulting in a conversion error
import pkg/union
proc doThing(i: sink int) = discard i as union(int | bool)
doThing(10)
Complains Error: values of type <sink[int]> is not convertible to <union(bool | int)>