C#: Add ConstantConditionBad file.

This commit is contained in:
Michael Nebel
2025-04-02 15:00:05 +02:00
parent 6820cbabc8
commit 93d0f364d6
2 changed files with 7 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
class Bad
{
public int Max(int a, int b)
{
return a > a ? a : b; // $ Alert
}
}

View File

@@ -25,11 +25,6 @@ namespace ConstantIfCondition
}
}
public int Max(int a, int b)
{
return a > a ? a : b; // $ Alert
}
public int Bar()
{
return ZERO;