Browse Source

Fix #995: Missing variable type for string concat statement

pull/998/merge
Siegfried Pammer 8 years ago
parent
commit
877638b27a
  1. 1
      ICSharpCode.Decompiler/CSharp/Transforms/ReplaceMethodCallsWithOperators.cs

1
ICSharpCode.Decompiler/CSharp/Transforms/ReplaceMethodCallsWithOperators.cs

@ -61,6 +61,7 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms
for (int i = 1; i < arguments.Length; i++) { for (int i = 1; i < arguments.Length; i++) {
expr = new BinaryOperatorExpression(expr, BinaryOperatorType.Add, arguments[i]); expr = new BinaryOperatorExpression(expr, BinaryOperatorType.Add, arguments[i]);
} }
expr.CopyAnnotationsFrom(invocationExpression);
invocationExpression.ReplaceWith(expr); invocationExpression.ReplaceWith(expr);
return; return;
} }

Loading…
Cancel
Save