asoffer / Icarus

An experimental general-purpose programming language
Apache License 2.0
9 stars 2 forks source link

Extra space in error message: #45

Closed asoffer closed 3 years ago

asoffer commented 3 years ago

Reproducing code:

s ::= struct {}
f ::= () -> s.{
}

Resulting error message:

The specified return type for a function must be a type.

  2 | f ::= () -> s.{

  3 | }

Extra space between shown lines 2 and 3 shouldn't be there.