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

Linter does not consider sequence properly #184

Open
washort opened this issue Jul 24, 2017 · 0 comments
Open

Linter does not consider sequence properly #184

washort opened this issue Jul 24, 2017 · 0 comments

Comments

@washort
Copy link

washort commented Jul 24, 2017

monte lint reports false positives for names that are defined in a scope but have uses before the definition.

This source:

x
def x := 0
x

produces this report:

bad.mt:3.1-4.2: Undefined name x
bad.mt:1.1-2.2: Undefined name x

Only the second line is correct. Proper name usage analysis will need to take ordering into consideration.

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