Explorar el Código

* fixed position where error message is given about wrong "class of"
type definitions (was at the position of the invalid x type in
"class of x", rather than at the position of the "class of x" definition
itself)

git-svn-id: trunk@13555 -

Jonas Maebe hace 16 años
padre
commit
3ed4734f85
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compiler/ptype.pas

+ 1 - 1
compiler/ptype.pas

@@ -114,7 +114,7 @@ implementation
                         { we need a class type for classrefdef }
                         if (def.typ=classrefdef) and
                            not(is_class(ttypesym(srsym).typedef)) then
-                          MessagePos1(tsym(srsym).fileinfo,type_e_class_type_expected,ttypesym(srsym).typedef.typename);
+                          MessagePos1(def.typesym.fileinfo,type_e_class_type_expected,ttypesym(srsym).typedef.typename);
                       end
                      else
                       begin