Skip to content

Comparison of by-ref single-variant nullary tag does not work #1035

Closed
@brson

Description

@brson
tag chan {
    chan_t;
}

fn wrapper3(i: chan) {
    log_err i;
    assert i == chan_t;
}

fn main() {
    wrapper3(chan_t);
}

log displays a number that looks like garbage and the assert fails. Possibly the same issue as #1034

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions