summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2014-06-26 21:04:20 +0200
committerAndreas Rumpf <rumpf_a@web.de>2014-06-26 21:04:20 +0200
commit92d1da407a401490a664843322789f502b975131 (patch)
treeb39751f0c3b30281240890d4edfc9a7904adaa75 /compiler/semstmts.nim
parentcb09723033100f2c2a32d0a9a9b12ea824dc26a8 (diff)
parent912ad820ee1127a595207d2067f0b6eeb0902dca (diff)
downloadNim-92d1da407a401490a664843322789f502b975131.tar.gz
Merge pull request #1278 from Varriount/fix-1090
Fix 1090
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index d17351988..11399b38b 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -828,6 +828,9 @@ proc typeSectionFinalPass(c: PContext, n: PNode) =
                               getCurrOwner(), s.info)
 
 proc semTypeSection(c: PContext, n: PNode): PNode =
+  ## Processes a type section. This must be done in separate passes, in order
+  ## to allow the type definitions in the section to reference each other
+  ## without regard for the order of their definitions.
   typeSectionLeftSidePass(c, n)
   typeSectionRightSidePass(c, n)
   typeSectionFinalPass(c, n)