You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Source generator fails with InvalidCastException #220
For the code below, I get the following error when compiling:
CSC : warning CS8785: Generator 'ProjectionExpressionGenerator' failed to generate source.
It will not contribute to the output and compilation errors may occur as a result.
Exception was of type 'InvalidCastException' with message
'Unable to cast object of type 'Microsoft.CodeAnalysis.CSharp.Syntax.ParenthesizedExpressionSyntax'
to type 'Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax'.'
That particular reproduction can be fixed by renaming InventoryEntry.Name to InventoryEntry.ItemName. But for my full model it would be nice if I did not have to rename like that.
Activity