Skip to content

Enforce correct types for channels #724

Closed
@eholk

Description

@eholk

This should fail to compile but currently doesn't.

fn start(chan[@int] c) {
    c <| @42;
}

fn main() {
    auto p = port();
    auto child = spawn start(chan(p));
    auto c; p |> c;
    log_err *c;
}

This will probably be fixed when #568 is fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions