-
Notifications
You must be signed in to change notification settings - Fork 132
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
goal_expansion/2 results depends on order of clauses #2601
Comments
Any change in the logic of In the concrete case of checking for syntax errors, what do you think about creating a library with these expansions? Such a library would be included at the start of a file, and hence affect the remaining code in the file also with the current implementation. |
Ok, that makes sense. I think then it is better not to change |
For semantic tests that are only applicable after a file is fully loaded, it may be worth considering to let |
Yes that's good point, loader is currently implemented in such way that |
Inspired by #2599 (reply in thread), I tried to add a rule to warn about not defined, but used goals:
But it doesn't work, because
goal_expansion/2
must be the first clause in a file. I think it would be better without such restriction.The text was updated successfully, but these errors were encountered: