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

Comparison true == false #14

Open
jcubic opened this issue Apr 11, 2023 · 1 comment
Open

Comparison true == false #14

jcubic opened this issue Apr 11, 2023 · 1 comment

Comments

@jcubic
Copy link

jcubic commented Apr 11, 2023

This throws an error: TypeError: Cannot read properties of undefined (reading 'toString')

WHAT IF COMPLETELY WRONG IS ACTUALLY TOTALLY RIGHT
   YOU WON'T WANT TO MISS 'Totally true'
END OF STORY

The same as:

WHAT IF COMPLETELY WRONG IS ACTUALLY TOTALLY RIGHT
   YOU WON'T WANT TO MISS 'Totally true'
LIES!
   YOU WON'T WANT TO MISS 'Obviously'
END OF STORY

Also tried with variables:

EXPERTS CLAIM true TO BE COMPLETELY WRONG
EXPERTS CLAIM false TO BE TOTALLY RIGHT
WHAT IF true IS ACTUALLY false
   YOU WON'T WANT TO MISS 'Totally'
LIES!
   YOU WON'T WANT TO MISS 'Obviously'
END OF STORY

If I add

PLEASE LIKE AND SUBSCRIBE

got error:

Error: Parsing error: expected ident, literal, or block, got Symbol(EndOfStory) before Symbol(PleaseLikeAndSubscribe)
@jcubic
Copy link
Author

jcubic commented Apr 11, 2023

I think that the error messages can be better. Obviously, it should throw an error that "END OF STORY" is redundant.

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

No branches or pull requests

1 participant