We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a72f848 commit cdf37e2Copy full SHA for cdf37e2
csharp/ql/lib/semmle/code/csharp/controlflow/Guards.qll
@@ -907,7 +907,7 @@ module Internal {
907
or
908
// "In string concatenation operations, the C# compiler treats a null string the same as an empty string."
909
// (https://docs.microsoft.com/en-us/dotnet/csharp/how-to/concatenate-multiple-strings)
910
- e instanceof AddExpr and
+ e instanceof AddOperation and
911
e.getType() instanceof StringType
912
913
e.(DefaultValueExpr).getType().isValueType()
0 commit comments