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
CA1517 false positive when span elements are mutated via foreach (ref var ...) #56292
➡️ Summary: CA1517 wrongly suggests ReadOnlySpan<T> for a parameter whose elements are mutated via foreach (ref var ...). Analyzer should recognize ref-foreach mutation as a write use.
Generated by 🏷️ Issue Triage for #56292 · copilot · auto · 63.6 AIC · ⌖ 8.68 AIC · ⊞ 14.6K · ◷
Activity
github-actions commentedon Sep 14, 2026
🎯 Agentic Issue Triage
Triage Assessment:
@Evangelink|@dotnet/dotnet-analyzershigh- The issue clearly identifies the CA1517 analyzer and reproduction is unambiguous, matching one CODEOWNERS section.➡️ Summary: CA1517 wrongly suggests
ReadOnlySpan<T>for a parameter whose elements are mutated viaforeach (ref var ...). Analyzer should recognize ref-foreach mutation as a write use.