Преглед на файлове

* give proper error location if something is wrong with the type argument list, resolves #9112

git-svn-id: trunk@8122 -
florian преди 18 години
родител
ревизия
4b9669a081
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      compiler/ptype.pas

+ 3 - 0
compiler/ptype.pas

@@ -145,6 +145,9 @@ implementation
                 pt2.free;
               end;
           end;
+        { force correct error location if too much type parameters are passed }
+        if token<>_RSHARPBRACKET then
+          consume(_RSHARPBRACKET);
         { Reparse the original type definition }
         if not err then
           begin