mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 07:19:27 +02:00
* use a more detailed error message if a type is not allowed for a generic constant parameter
git-svn-id: trunk@45092 -
This commit is contained in:
parent
287c298f37
commit
04554d7505
@ -1435,7 +1435,7 @@ uses
|
||||
tconstsym(result[i]).constdef:=def;
|
||||
end
|
||||
else
|
||||
Message(type_e_mismatch);
|
||||
Message1(type_e_generic_const_type_not_allowed,def.fulltypename);
|
||||
end;
|
||||
{ after type restriction const list terminates }
|
||||
is_const:=false;
|
||||
|
Loading…
Reference in New Issue
Block a user