union icon indicating copy to clipboard operation
union copied to clipboard

Sink types are not skipped resulting in a conversion error

Open beef331 opened this issue 8 months ago • 0 comments

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)>

beef331 avatar Mar 28 '25 06:03 beef331