-
Notifications
You must be signed in to change notification settings - Fork 513
Open
Description
I'm recreating the MultiValueDictionary type and part of that means recreating tests.
I'm working with a test for the Add(TKey, TValue)
function, here:
private AddDelegate<TKey, TValue>[] Add<TKey, TValue>()
{
var ret = new AddDelegate<TKey, TValue>[1];
ret[0] = (MultiValueDictionary<TKey, TValue> mvd, TKey key, TValue value) => mvd.Add(key, value);
return ret;
}
When I try to rebuild this method, I am using this code:
private static AddDelegate<TKey, TValue>[] Add<TKey, TValue>()
where TKey : notnull
=> [(mvd, key, value) => mvd.Add(key, value)];
^ SA1008 Openening parenthesis should be preceded by a space.
If I follow its advice and provide a space, then I get a different error.
=> [ (mvd, key, value) => mvd.Add(key, value)];
^ SA1010 Opening square brackets should not be followed by a space.
Metadata
Metadata
Assignees
Labels
No labels