Skip to content

Typechecker should stop this #802

Closed
Closed
@eholk

Description

@eholk
tag foo = int;

fn main() {
   let x = foo(1);
   if x == -1 { }
}

This program should not compile, but it does.

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