-
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
Missing quick fixes before members #7980
Comments
Thanks for the report. It looks like this worked in VS2015 RTM, then was regressed in Update 1, but is now working again in internal builds. @CyrusNajmabadi Can you verify that we have good test coverage here? |
This is failing because of: #7536 We need to fix the issue that we don't get errors for incomplete members so that this works. |
I could have sworn I saw this work with the latest bits... |
This is a regression that we shipped in Update 1. I get that we'd like a compiler fix for it with #7536, but that's been pushed to 2.0. Is there a fix we can make now to fix the regressed behavior and then drive for the right fix later? |
ping @gafter This is the same issue. We don't report semantic errors on incomplete members. |
Assigning to gafter as this involved binding incomplete members. |
I finally managed to find a simple repro I believe:
WebClient
in front ofMainWindow
's constructor, like this:At this point, a quick fix for CS0246 should be offered to resolve
WebClient
(i.e. addusing System.Net
). Actual results: no quick fix (probably because CS0246 is not generated at all).I am not sure what triggers the issue, the same thing in console application works and under certain circumstances in WPF projects too. Anyway, I believe the add using option was available at this point in previous versions.
The text was updated successfully, but these errors were encountered: