summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-04-26 11:46:14 +0000
committersvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-04-26 11:46:14 +0000
commit94d82c28f52ac8957c5ae3a336d668f34062130d (patch)
tree7bf8d914b0bd2a5da9069847e84c5a6b3c4fd292
parent02e430375acc90a467c7d3c054762c2a38315a13 (diff)
downloadfpc-94d82c28f52ac8957c5ae3a336d668f34062130d.tar.gz
+ add an explicit error message if a type is not supported for a generic constant parameter
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@45090 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r--compiler/msg/errore.msg5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/msg/errore.msg b/compiler/msg/errore.msg
index dff4eb514b..5c9f4a3fbd 100644
--- a/compiler/msg/errore.msg
+++ b/compiler/msg/errore.msg
@@ -1617,7 +1617,7 @@ parser_e_generic_constraints_not_allowed_here=03355_E_Generic constraint not all
%
# Type Checking
#
-# 04127 is the last used one
+# 04128 is the last used one
#
% \section{Type checking errors}
% This section lists all errors that can occur when type checking is
@@ -2061,6 +2061,9 @@ type_e_forward_interface_type_does_not_match=04127_E_The interface type of the f
% When declaring an interface forward, the interface type must be the same as at the actual declaration of the interface.
% This is in particular important with regard to the parent interface which implicitly sets the interface type for the
% child interface.
+type_e_generic_const_type_not_allowed=04128_E_Type not allowed for generic constant parameter: $1
+% Only types that can also be used (indirectly) for untyped constants can be used as a
+% type for a generic constant parameter.
% \end{description}
#
# Symtable