-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
Input code
public string ContainsCast(int i)
{
return $"a_{(short)i}_b";
}
public string ContainsCast(long i)
{
return $"a_{(int)i}_b";
}Erroneous output
public string ContainsCast(int i)
{
return $"a_{(short)i}_b";
}
public string ContainsCast(long i)
{
return $"a_{i}_b";
}The absence of the cast in the second method is a behavioral change, and the problem only exhibits on the "Roslyn Latest" unit tests.
Details
- Product in use: ILSpy unit testing
- Version in use: latest commit
- Any other relevant information to the issue, or your interest in contributing a fix.
- I discovered this while working on Parenthesize interpolations containing
global::#3463
- I discovered this while working on Parenthesize interpolations containing