We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 754e7bc commit a46d2a5Copy full SHA for a46d2a5
1 file changed
StyleCop.Analyzers/StyleCop.Analyzers.Test/ReadabilityRules/SA1139UnitTests.cs
@@ -183,6 +183,9 @@ public void Method()
183
[InlineData("(bool)true")]
184
[InlineData("(bool)(false)")]
185
[InlineData("(long)~+1")]
186
+ [InlineData("unchecked((byte)-1)")]
187
+ [InlineData("(sbyte)-1")]
188
+ [InlineData("(int)-1")]
189
public async Task TestOtherTypesOfCastsShouldNotTriggerDiagnosticAsync(string correctCastExpression)
190
{
191
var testCode = $@"
0 commit comments