elm / error-message-catalog

A catalog of broken Elm programs / data to improve error messages
BSD 3-Clause "New" or "Revised" License
174 stars 17 forks source link

Decimals starting with `.` have confusing error message. #333

Open openorclose opened 4 years ago

openorclose commented 4 years ago

Ideally it would say that numbers cannot start with a decimal point!

-- EXPECTING RECORD ACCESSOR ---------------------------------------------- REPL

I am trying to parse a record accessor here:

3|   .123
      ^
Something like .name or .price that accesses a value from a record.

Note: Record field names must start with a lower case letter!