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
VB.NET: using framework type name as field name in value tuple crashes 'Extract Method' and 'Introduce Variable' refatorings #21662
Comments
@AlekseyTs can you take a look at this? It looks like the This commit has a test I concocted that shows the symbol information being the namedtype |
CC @jcouv |
I didn't quite follow. The test has: |
Yes, the test fails
|
@jcouv moving to Area-Compilers |
@jcouv This is related to #29233. |
hi @jinujoseph , how is this issue related to the one I reported on DC? https://developercommunity.visualstudio.com/content/problem/506257/hard-crash-to-desktop-when-renaming-a-variable-in.html# It seems like this issue has to do with keyword escaping where the problem I ran into has to do with using the field of any class as an iteration variable. |
@ryzngard to investigate the DC issue. |
@amelvill while the repro steps and scenario may be different, the underlying issue for both are closely tied and will be resolved by the same fix based on our investigation. This line appears to be the culprit of the DC issue. #29233 also seems to be related, as noted by Adam above. As part of the fix, all scenarios linked to the issue should be tested to verify they are also resolved. |
@ryzngard Understood, thanks for the update! |
Version Used:
VS 2017 15.3
Steps to Reproduce:
DateTime.Now.ToString()
Expected Behavior:
No errors
Actual Behavior:
'Extract Method' and 'Introduce Variable' refatorings crashes
'Extract Method' stack trace:
'Introduce Variable' stack trace:
The text was updated successfully, but these errors were encountered: