Back

LL020

Variant usage

Object Pascal — Delphi & Free Pascal
Warning
Delphi

`Variant` weakens type safety and can hide conversion/runtime errors

`Variant` weakens type safety and can hide conversion/runtime errors.

Why this severity

`Variant` weakens type safety and can hide conversion/runtime errors.


Known false positives

COM/OLE interop scenarios that require variant payloads.

Remediation example

var
  Count: Integer;

Reconnecting… Connection lost. Reload