-- Collection of code snippets by Arne Vajhøj 
-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
with Ada.Text_IO,Ada.Integer_Text_IO;

use Ada.Text_IO,Ada.Integer_Text_IO;

procedure typs2xx is

type num_people is new Integer;
type num_models is new Integer;
type num_colors is new Integer;

np : num_people;
nm : num_models;
nc : num_colors;

begin
    np := 10;
    nm := 5;
    nc := np + nm; -- compilation errors
    Put(Integer(nc));
    New_Line;
end typs2xx;
