Back

LL006

'with' statement usage

Object Pascal — Delphi & Free Pascal
Warning
Delphi

`with` obscures binding and can introduce subtle bugs

`with` obscures binding and can introduce subtle bugs.

Why this severity

`with` obscures binding and can introduce subtle bugs.


Known false positives

small local code blocks with unambiguous symbols.

Remediation example

Customer.Name := 'Alice';
Customer.Active := True;

Reconnecting… Connection lost. Reload