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

compiler doesn't seem to understand what not does to booleans #481

Closed
Akuli opened this issue Dec 25, 2023 · 0 comments · Fixed by #489
Closed

compiler doesn't seem to understand what not does to booleans #481

Akuli opened this issue Dec 25, 2023 · 0 comments · Fixed by #489

Comments

@Akuli
Copy link
Owner

Akuli commented Dec 25, 2023

import "stdlib/io.jou"

def main() -> int:
    if not True:
        puts("Hello")
    return 0

Expected result: warning because puts("hello") never runs

Actual result: no warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant