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

Error message for ternary assumes : was present. #429

Open
Zentrik opened this issue Apr 10, 2024 · 0 comments
Open

Error message for ternary assumes : was present. #429

Zentrik opened this issue Apr 10, 2024 · 0 comments
Labels
error messages Better, more actionable diagnostics

Comments

@Zentrik
Copy link
Member

Zentrik commented Apr 10, 2024

The error message could be improved to say that : was missing:

julia> (x ? 4)
ERROR: ParseError:
# Error @ REPL[1]:1:7
(x ? 4)
#     └ ── space required before `:` in `?` expression
Stacktrace:
 [1] top-level scope
   @ none:1

This was on 1.10.2 but I see the same on nightly.

@Zentrik Zentrik added the error messages Better, more actionable diagnostics label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Better, more actionable diagnostics
Projects
None yet
Development

No branches or pull requests

1 participant