--  A raise expression among values of a universal type (a reduction's of literals): it
--  takes the other values' type (it was typed as an error, and the reduction as Boolean)
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
   type Vector is array (Positive range <>) of Integer;
   V : constant Vector := [for I in 1 .. [for K in 0 .. 2 => (if K >= 0 then 2 else raise Constraint_Error)]'Reduce ("+", 0) => I];
   procedure Show (X : Vector) is
   begin
      for E of X loop
         Put (Integer'Image (E));
      end loop;
      New_Line;
   end Show;
begin
   Show (V);
end Main;
