summary refs log tree commit diff stats
path: root/nim/semfold.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/semfold.pas')
-rw-r--r--nim/semfold.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/nim/semfold.pas b/nim/semfold.pas
index 422ddbd01..781c3b97d 100644
--- a/nim/semfold.pas
+++ b/nim/semfold.pas
@@ -406,6 +406,8 @@ begin
           else            result := copyTree(s.ast); // BUGFIX
         end
       end
+      else if s.kind = skProc then // BUGFIX
+        result := n
     end;
     nkCharLit..nkNilLit: result := copyNode(n);
     nkIfExpr: result := getConstIfExpr(module, n);