controlflow / resharper-heapview

ReSharper Heap Allocations Viewer plugin
MIT License
303 stars 28 forks source link

Allocation highlighting disappears when replacing new T() with new() #81

Closed AJPoulter closed 1 year ago

AJPoulter commented 3 years ago

Memory allocation highlighting disappears when using the C# 9.0 syntactic sugar feature of simplifying initialization: Foo x = new Foo(); // new is highlighted with an underscore

Foo x = new(); // highlighting disappears

controlflow commented 1 year ago

Fixed, thanks for reporting!