-
Notifications
You must be signed in to change notification settings - Fork 123
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
unbound symbol error when symbol is actually bound #125
Comments
I think this is because We could definitely improve the error message in this case, perhaps saying "unbound type name" instead of just "unbound symbol". Or we could have a special message just for cases like this where the symbol is in scope as an expression variable but not a type variable. |
I feel that even giving a better error message here would be misleading. That is, I find it confusing that sometimes I can use The main use of What would it take to get the version of |
This tries to address #125 by making the errors from the renamer a little bit more clear. Squashed commit of the following: commit 8afd3d7 Author: Trevor Elliott <[email protected]> Date: Wed Dec 3 19:33:59 2014 -0800 Update tests for new renamer errors commit 7cac018 Author: Trevor Elliott <[email protected]> Date: Wed Dec 3 19:33:49 2014 -0800 Add `at` on errors and warnings to be more consistent commit 308908b Author: Trevor Elliott <[email protected]> Date: Wed Dec 3 19:06:57 2014 -0800 More consistent renamer warnings commit be8100a Author: Trevor Elliott <[email protected]> Date: Wed Dec 3 18:56:53 2014 -0800 More consistent error formatting from the renamer commit 26c45c3 Author: Trevor Elliott <[email protected]> Date: Wed Dec 3 18:56:36 2014 -0800 Remove an un-triggerable error commit ccdb93e Author: Trevor Elliott <[email protected]> Date: Wed Dec 3 16:38:44 2014 -0800 Try to give better errors for unbound identifiers commit eb57841 Author: Trevor Elliott <[email protected]> Date: Wed Dec 3 16:38:23 2014 -0800 Remove old TODOs about located errors commit b984bb5 Author: Trevor Elliott <[email protected]> Date: Wed Dec 3 14:37:34 2014 -0800 Differentiate missing type and expression symbols commit b9e6f13 Author: Trevor Elliott <[email protected]> Date: Wed Dec 3 14:36:52 2014 -0800 Remove a shadowing warning
The error message is much better. Aaron suggests "typeof" to take a value and produce a type, so we could do something like:
in this case. Rob pointed out that we could define a type alias for G, and use that everywhere, but maybe not as satisfying. Yav? |
The text was updated successfully, but these errors were encountered: