Skip to content

Sink types are not skipped resulting in a conversion error #66

@beef331

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions