Closed
Description
It is little bit more complicated while concatenating 'tostringed' objects only.
Example:
class C
{
string M() => 1 + 2.ToString();
}
CC0118 is detected and code after fix looks like this:
class C
{
string M() => 1 + 2;
}
which is incorrect.
Solution 1: Do not detect CC0118 in such situations.
Solution 2: Fix needs to be smarter.
This is problematic primarily when using solution-wide fix because of possibly large number of wrong fixes.