-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Have compiler return semantic errors in incomplete members. #7536
Comments
pinging @gafter |
@gafter @CyrusNajmabadi I don't think this meets the RTM bar. Moving out. |
@jaredpar @jcouv IDE still needs this. Right now we have to have our own binder here and it means even basic things like It's really just a layer of hacks that continually causes us problems and leads to weird bugs for users that we're always chasing down and attempting to stamp out. Could we get some compiler eyes on this? Thanks! |
This is something we'd need to discuss in the post 17.0 timeframe. At this point between C# 10 and the IDE work we're taking on we're over booked for 17.0. |
@jaredpar can we assign this to someone though? |
We can but I'm not sure what that is going to help here. Until we have a priority for this relative to other asks not going to make progress on it. |
This is similar to #1867
Examples where we want semantic errors:
Note: i handled this in TypeScript by not even having the concept of an "Incomplete Member". If no existing member rule could parse out the text, then we fell back to "Field". This meant that we would properly consume the modifiers, attribute and type, and we'd give proper messages for when anything was missing.
By then being a field, all the remaining parts of the compiler just lit up and worked properly.
This is something we could consider doing in the C# compiler as well. (or we could just make it so that it binds Incomplete Members).
The text was updated successfully, but these errors were encountered: