-
-
Notifications
You must be signed in to change notification settings - Fork 831
Closed
xunit/xunit.analyzers
#199Labels
Analyzershttps://github.com/xunit/xunit.analyzershttps://github.com/xunit/xunit.analyzersBugA fault in an existing featureA fault in an existing featurehelp wantedA community-provided PR would be welcomedA community-provided PR would be welcomed
Description
public sealed class ValidExamples : IEnumerable<string[]>
{
private readonly List<string[]> _items = [];
public void Add([StringSyntax("GraphQL")] string sdl)
{
_items.Add([sdl]);
}
public IEnumerator<string[]> GetEnumerator()
{
return _items.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
}// Valid
IEnumerable<object[]> x = new ValidExamples();
It runs without issues.
Metadata
Metadata
Assignees
Labels
Analyzershttps://github.com/xunit/xunit.analyzershttps://github.com/xunit/xunit.analyzersBugA fault in an existing featureA fault in an existing featurehelp wantedA community-provided PR would be welcomedA community-provided PR would be welcomed