瀏覽代碼

* 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 16 年之前
父節點
當前提交
3ed4734f85
共有 1 個文件被更改,包括 1 次插入1 次删除
  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