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
using System;classC{staticvoidMain(){
Foo(stackalloc[]{'a'});// SA1500 is reported here
Foo(new[]{'a'});// SA1500 is NOT reported here}staticvoidFoo(ReadOnlySpan<char>a){}}
The Foo(stackalloc[] { 'a' }); code is in one line, so I think SA1500 should not be reported that.
The text was updated successfully, but these errors were encountered:
Version used:
StyleCop.Analyzers 1.2.0-beta.66
The
Foo(stackalloc[] { 'a' });
code is in one line, so I think SA1500 should not be reported that.The text was updated successfully, but these errors were encountered: