Error message sorting-- when there's an incompatible assignment, the reported error should be at the assignment #214

Open
baroquebobcat opened this Issue Apr 5, 2013 · 0 comments

Comments

Projects
None yet
1 participant
Owner

baroquebobcat commented Apr 5, 2013

$ be mirah -e 'x = 1;puts x; 10.times{x=true}'
[...]
Inference Error:
DashE:1: Incompatible types #<IntegerType int> and #<BooleanType boolean>.
x = 1;puts x; 10.times{x=true}
           ^

I would expect the reported error would look more like this

$ be mirah -e 'x = 1;puts x; 10.times{x=true}'
[...]
Inference Error:
DashE:1: Incompatible types #<IntegerType int> and #<BooleanType boolean>.
x = 1;puts x; 10.times{x=true}
                       ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment