Explorar o código

* typeconvnodes are only equal if also their result type is equal

git-svn-id: trunk@14690 -
florian %!s(int64=15) %!d(string=hai) anos
pai
achega
3c7f726f98
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      compiler/ncnv.pas

+ 2 - 1
compiler/ncnv.pas

@@ -3018,7 +3018,8 @@ implementation
       begin
         docompare :=
           inherited docompare(p) and
-          (convtype = ttypeconvnode(p).convtype);
+          (convtype = ttypeconvnode(p).convtype) and
+          equal_defs(resultdef,left.resultdef);
       end;