Browse Source

* set correct fileinfo for statements_til_end() block

git-svn-id: trunk@42044 -
Jonas Maebe 6 years ago
parent
commit
f76cde1c4c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/pstatmnt.pas

+ 2 - 0
compiler/pstatmnt.pas

@@ -109,6 +109,8 @@ implementation
            end;
          consume(_END);
          statements_til_end:=cblocknode.create(first);
+         if assigned(first) then
+           statements_til_end.fileinfo:=first.fileinfo;
       end;