Skip to content
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

Kit is unable to statically execute a logical invert #143

Open
bendmorris opened this issue Nov 25, 2019 · 0 comments
Open

Kit is unable to statically execute a logical invert #143

bendmorris opened this issue Nov 25, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@bendmorris
Copy link
Member

If this is a code issue, provide a minimal code example:

function main() {
    static if defined(FLAG) {
        puts("this works");
    }
    static if !defined(FLAG) {
        puts("this doesn't");
    }
}
----------------------------------------
Error: ./test.kit:5: `static if` condition couldn't be evaluated at compile time

  @./test.kit:5:15-27
       5        static if !defined(FLAG) {
                          ^^^^^^^^^^^^^
[2019-11-25 13:25:31.4489] ERR: compilation failed (1 errors)
@bendmorris bendmorris added the bug Something isn't working label Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant