Skip to content
New issue

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

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

Already on GitHub? # to your account

switching on type causes assertion failure in the compiler #310

Closed
andrewrk opened this issue Apr 6, 2017 · 0 comments
Closed

switching on type causes assertion failure in the compiler #310

andrewrk opened this issue Apr 6, 2017 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Apr 6, 2017

fn foo() {
    bar(bool);
}

fn bar(comptime T: type) {
    switch (T) {
        bool => {},
        else => {},
    }
}
@andrewrk andrewrk added the bug Observed behavior contradicts documented or intended behavior label Apr 6, 2017
@andrewrk andrewrk added this to the 0.1.0 milestone Apr 6, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

1 participant