Skip to content

Malformed expression leads to butchered error diagnostic #173

@fmease

Description

@fmease

Source:

x=lengthy-space-filler (case 0 of
    \n => n
<-)

Stderr:

error[E010]: found line break but expected ‘)’
  ┌─ /home/fmease/programming/lushui/bad-diag-msg.lushui:2:13
  │
2 │     \n => n
<-)
  │           ⟫⟪ unexpected token

error: aborting due to previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: DiagnosticsT-bugType: Something isn't working as intended

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions