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
There should be no "pattern" in this tree. Roslyn parses var (a, b) as a declaration expression, and the = is an assignment and not a variable declarator. Finally tuple_pattern doesn't exist in Roslyn, so maybe the best would be to remove it altogether.
The text was updated successfully, but these errors were encountered:
It seems the equivalent in Roslyn is ParenthesizedVariableDesignation to indicate that there are multiple parts being assigned (with two SingleVariableDesignation inside it in this example) rather than tuple_pattern with two identifiers.
(a, var b) = (1, 2);
parses asThis looks correct.
But
var (a, b) = (1, 2);
parses asThere should be no "pattern" in this tree. Roslyn parses
var (a, b)
as a declaration expression, and the=
is an assignment and not a variable declarator. Finallytuple_pattern
doesn't exist in Roslyn, so maybe the best would be to remove it altogether.The text was updated successfully, but these errors were encountered: