浏览代码

* use a more detailed error message if a type is not allowed for a generic constant parameter

git-svn-id: trunk@45092 -
svenbarth 5 年之前
父节点
当前提交
04554d7505
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/pgenutil.pas

+ 1 - 1
compiler/pgenutil.pas

@@ -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;