DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B1013: unknown aspect

Catalog status: active. Default severity: error. Stable name: unknown-aspect. Family: Names and declarations.

The aspect name is not one Verada knows (Ada's aspects, Verada's contract aspects such as Global and Depends, and GNAT's Finalizable). Verada suggests the closest known aspect.

Example (Vada)

   function Twice (N : Integer) return Integer is (2 * N)
     with Pst => Twice'Result = 2 * N;

Example (Varc)

    fn twice(n: Integer) -> Integer
        @Pst(result == 2 * n)
    = 2 * n;

What to do (Vada)

Fix the spelling (Post), or remove the aspect.

What to do (Varc)

Fix the spelling (@Post, or its keyword form ensures result == 2 * n), or remove the aspect.

Regression source and further reading

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

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