Code inspection: Empty 'with' expression is redundant
This inspection reports an empty with expression that does not make any meaningful change.
Example
var copy = person with { };
var copy = person;
Quick-fix
The quick-fix removes the redundant with expression and keeps the original value.
01 April 2026