:
type A_T is range 1 .. 50;
subtype B_T is A_T;
Sub_type B_Tis actually "the same" as the type A_T, since it does not create any restrictions on it. It is rather a type renaming A_Tfor convenience, for example. So you cannot say that Ada subtypes are dependent types.
source
share