We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ea34f commit 3903a90Copy full SHA for 3903a90
csharp/ql/test/query-tests/standalone/Bad Practices/Control-Flow/ConstantCondition/ConstantCondition.cs
@@ -19,7 +19,7 @@ void M1()
19
// Should not be considered a constant condition as
20
// we don't know anything about D.
21
var d = new D();
22
- if (d.Prop is C2) // $ Alert
+ if (d.Prop is C2)
23
{
24
}
25
csharp/ql/test/query-tests/standalone/Bad Practices/Control-Flow/ConstantCondition/ConstantCondition.expected
@@ -1,4 +1,2 @@
1
| ConstantCondition.cs:15:13:15:26 | ... is ... | Condition always evaluates to 'false'. |
2
| ConstantCondition.cs:15:24:15:26 | access to type Int32 | Pattern never matches. |
3
-| ConstantCondition.cs:22:13:22:24 | ... is ... | Condition always evaluates to 'false'. |
4
-| ConstantCondition.cs:22:23:22:24 | access to type C2 | Pattern never matches. |
0 commit comments