Code inspection: Use 'with' expression to copy tuple
This inspection reports tuple creation where most components are copied from an existing tuple and only some components are changed. If the tuple already exists, a with expression can describe that copy more directly.
Example
var source = (A: 1, B: true, C: "abc");
var updated = (A: source.A, B: false, C: source.C);
var source = (A: 1, B: true, C: "abc");
var updated = source with { B = false };
Quick-fix
Using with removes repeated component copying and makes it easier to see which tuple parts actually change.
30 March 2026