Analyze_And_Resolve (New_Copy_Tree (Key_Expr), Key_Type);
End_Scope;
+ Typ := Key_Type;
+
elsif Present (Iterator_Specification (Comp)) then
Copy := Copy_Separate_Tree (Iterator_Specification (Comp));
Id_Name :=
elsif Present (Key_Type) then
Analyze_And_Resolve (Choice, Key_Type);
-
+ Typ := Key_Type;
else
Typ := Etype (Choice); -- assume unique for now
end if;
Enter_Name (Id);
- if No (Key_Type) then
- pragma Assert (Present (Typ));
- Set_Etype (Id, Typ);
- else
- Set_Etype (Id, Key_Type);
- end if;
+ pragma Assert (Present (Typ));
+ Set_Etype (Id, Typ);
Mutate_Ekind (Id, E_Variable);
Set_Is_Not_Self_Hidden (Id);