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
Collectionexpressions are detected as variable declarations and not as InitializerExpression
- Filter based on the declared variables collectionexpressions out, and then check each element
The error code
SA1137: Elements should have the same indentation
is not raised in C# 12 collection expressions.Example:
SA1137 is correctly raised inside an object initialization (example1), but it is missing in collection expressions (example2)
Example code
The text was updated successfully, but these errors were encountered: