JuliaLang / JuliaLang/JuliaSyntax.jl

Error message for ternary assumes `:` was present.

Open
#429 0 comments 0 reactions 0 assignees View on GitHub
error messages
Dominant language
Julia
Stars
293
Forks
50
PR merge metrics
No merged PRs in 30d

Description

The error message could be improved to say that `:` was missing:
```julia
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.