-
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
GenerateTypeTests.TestGenerateVarType broken by #7515 #7516
Comments
Here is the symptom:
|
@dotnet/roslyn-ide: Anyone have any ideas of the top? |
Let me debug through this to find out. |
@CyrusNajmabadi I already found the problem/fix, see #7515 (comment) |
Hey Neal, the issue here is that "@var" is misclassified by the compiler as the "var" keyword. Causing the following error to be emitted instead: "test1.cs(1,41): error CS0825: The contextual keyword 'var' may only appear within a local variable declaration or in script code" I'm not sure what the reason for that is, but it seems useful to have a test that validates that @var doesn't produce that error in the compiler layer. Once that gets fixed up, the IDE test will likely succeed again. |
Hi @leppie Thanks for the investigation as well. Looks like we both found it at the same time :) |
Moving to compiler based on the investigations above. |
@NoneGiven thanks! |
The test
GenerateTypeTests.TestGenerateVarType
is broken by #7515. Can someone on the IDE team please help me diagnose this?The branch to work from is https://github.com/gafter/roslyn/tree/fix7387
The text was updated successfully, but these errors were encountered: