-
-
Notifications
You must be signed in to change notification settings - Fork 837
Closed as not planned
Labels
Analyzershttps://github.com/xunit/xunit.analyzershttps://github.com/xunit/xunit.analyzersBugA fault in an existing featureA fault in an existing featureExternalThe issue is caused by an external partyThe issue is caused by an external party
Description
https://github.com/dotnet/corefx/pull/38701/files#diff-91724393075e1a7718d3521655506742R86
In the following test code:
public static unsafe void Ctor_CharPtr_Int_Int(char[] valueArray, int startIndex, int length, string expected)
{
fixed (char* value = valueArray)
{
Assert.Equal(expected, new string(value, startIndex, length));
}
}valueArray is marked as unused even though it is used in the fixed statement.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Analyzershttps://github.com/xunit/xunit.analyzershttps://github.com/xunit/xunit.analyzersBugA fault in an existing featureA fault in an existing featureExternalThe issue is caused by an external partyThe issue is caused by an external party