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

Handle Logical Expressions Where AND/OR and NOT Operation Should Only Accept Boolean Values #96

Open
Alexius-Huang opened this issue May 29, 2020 · 0 comments
Labels
Bug Something isn't working Expression: Logical

Comments

@Alexius-Huang
Copy link
Owner

What?
Currently there are no test case to check the AND/OR and NOT operations if the comparison value is not Bool.

How?
The following program shouldn't compile successfully:

123 and False

Expected behavior?
It should raise error message:

ParserError: `and` logical operation only accepts `Bool` type value, instead got value of type `Num`
@Alexius-Huang Alexius-Huang added the Bug Something isn't working label May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Expression: Logical
Projects
None yet
Development

No branches or pull requests

1 participant