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
Is your feature request related to a problem? Please describe.
The following code (in the switch expression) should be mutated but is not:
publicvoidListPatterns(){decimalbalance=0m;string[][]transactions=new[]{new[]{"1","DEPOSIT","100.00"},};foreach(string[] transaction in transactions){balance+=transactionswitch{// "DEPOSIT" should be mutated here[_,"DEPOSIT", _, var amount]=>decimal.Parse(amount),[_,"WITHDRAWAL", .., var amount]=>-decimal.Parse(amount),[_,"INTEREST", var amount]=>decimal.Parse(amount),[_,"FEE", var fee]=>-decimal.Parse(fee),
_ =>thrownew InvalidOperationException($"Record {string.Join(", ", transaction)} is not in the expected format!"),};
Console.WriteLine($"Record: {string.Join(", ", transaction)}, New balance: {balance:C}");}}
Describe the solution you'd like
We should introduce a new orchestrator for the syntax type ListPatternSyntax.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The following code (in the switch expression) should be mutated but is not:
Describe the solution you'd like
We should introduce a new orchestrator for the syntax type
ListPatternSyntax
.The text was updated successfully, but these errors were encountered: