Reporter |
|
---|---|
Created | Apr 23, 2009 9:31:13 PM |
Updated | Apr 6, 2018 1:35:27 PM |
Subsystem | Context Actions |
Assignee | Andrew Karpov (andrew.karpov) |
Priority | Normal |
State | Open |
Type | Bug |
Fix version | 2018.2 |
Affected versions | 2018.1 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
bool Eq(double a, double b)
{
return a == b;
}
Alt+enter on the operator== offers to convert to Equals, but doing that would convert to the object.Equals(obj a, obj b), which would cause boxing. Instead, it should convert to a.Equals(b), which calls the type-specific strongly-typed method without boxing.