-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Unexpected value QueryClause
of type Microsoft.CodeAnalysis.CSharp.BoundKind
#75194
Comments
QueryClause
of type Microsoft.CodeAnalysis.CSharp.BoundKind
Oh, I've referenced this syntax multiple times (dotnet/csharplang#7634 (comment)) without verifying it actually works. Perhaps it worked in previous versions. |
@huoyaoyuan It indeed works in previous versions, but it fails from 17.12 as beginning version. |
This looks like a regression from #73102 |
Version Used:
VS 17.12 p2
Steps to Reproduce:
Type code using customized
Select
method (but use query syntax to reproduce) and collection expression spread operation:I'm not sure whether the failure should use spread operation, but my environment can reproduce by using this; one necessary condition is to use LINQ query syntax.
If query syntax is replaced with equivalent method invocation, the code will be fine to compile:
Diagnostic Id:
None
Expected Behavior:
Fine to compile.
Actual Behavior:
"csc.exe" exited with code -2146232797.
Failed message:
The text was updated successfully, but these errors were encountered: