New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing compile error for non-optional types compared against null #1539

Closed
andrewrk opened this Issue Sep 17, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@andrewrk
Member

andrewrk commented Sep 17, 2018

test "aoeu" {
    var x: i32 = 1;
    _ = &x == null;
}

test passes but it should be a compile error

@andrewrk andrewrk added the bug label Sep 17, 2018

@andrewrk andrewrk added this to the 0.3.0 milestone Sep 17, 2018

@andrewrk andrewrk closed this in 78a9a46 Sep 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment