-
-
Notifications
You must be signed in to change notification settings - Fork 657
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 Diagnostic given sometimes when naming type #2998
Comments
Oops. Thank you! |
Edit: looking at this more in the code there are a lot of places where it actually is ambiguous since constructor variants are valid value UpNames so this would probably just shift the confusion forward/to more places |
We're talking about relaxing the parsing of lowercase names and turning them into an error in analysis in order to enable the formatter to auto-correct function names. That would enable us to give error messages with more context here too if we decide to do that. |
The thing I can think of is that in this language the naming convention is determined by its previous token ( |
As seen in the screenshot, the compiler gives the diagnostic that "names" should start with lowercase letters despite this being a type name, which should give the second diagnostic shown.
The text was updated successfully, but these errors were encountered: