DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B2006: record has no such component

Catalog status: active. Default severity: error. Stable name: unknown-component. Family: Types and constraints.

A selected component R.C or a named association in a record aggregate names a component the record type does not have. Verada lists the components and suggests the closest name.

Example (Vada)

   type Point is record
      X, Y : Integer := 0;
   end record;
   ...
   P.Z := 1;

Example (Varc)

    struct Point {
        x, y: Integer = 0,
    }
    ...
    p.z = 1;

What to do

Use one of the record's components.

Regression source and further reading

Complete regression example: source, command arguments and expected results. The fixture deliberately reproduces this diagnostic.

See types and constraints, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.