Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect line numbers for missing record field errors #263

Open
j14159 opened this issue Dec 3, 2018 · 0 comments
Open

Incorrect line numbers for missing record field errors #263

j14159 opened this issue Dec 3, 2018 · 0 comments

Comments

@j14159
Copy link
Collaborator

j14159 commented Dec 3, 2018

module mod
let foo :b = {b=0}
let foo :a = {a=true, b=0}

The typer currently and _incorrectly reports a missing member a on line 3:

{error, {missing_record_field, mod, 3, a}}

I believe this is because even though it's correctly finding the lower bound (a record with a and b members), the environment doesn't track the source (line) of the initial type, {b: bool} and thus can't accurately report the true problem location.

j14159 added a commit to j14159/alpaca that referenced this issue Dec 3, 2018
Some line number reports are still incorrect but at least point to the
correct function now.  Please see the following issue for more detail:

alpaca-lang#263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant