Skip to content

Commit 983c118

Browse files
Copilotstephentoub
andcommitted
Document collection expression limitation - elements require special unwrapping
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent caa0815 commit 983c118

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Microsoft.CodeAnalysis.NetAnalyzers/tests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/Microsoft.NetCore.Analyzers/Tasks/DoNotUseNonCancelableTaskDelayWithWhenAnyTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ async Task M()
297297
");
298298
}
299299

300-
// Note: Collection expression support is handled via ICollectionExpressionOperationWrapper
301-
// but explicit test is omitted due to test framework complexities with C# 12 features
300+
// Note: Collection expression elements are wrapped in operation nodes that require
301+
// special unwrapping logic. The analyzer includes ICollectionExpressionOperationWrapper
302+
// handling, but collection expression elements may be wrapped differently than
303+
// array initializer elements, requiring additional investigation to properly unwrap them.
302304
}
303305
}

0 commit comments

Comments
 (0)