diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-10-28 13:46:43 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-28 13:46:43 +0200 |
commit | c6235920cbb4a10b03889926ed7d7e2b699ae465 (patch) | |
tree | 35df513e2eb8665e8ae07674d5b57785275b39eb /compiler/semstmts.nim | |
parent | dcfc2b0e5f94a3a6daf1e30dc337470702c662eb (diff) | |
download | Nim-c6235920cbb4a10b03889926ed7d7e2b699ae465.tar.gz |
backend preparations for incomplete/forwarded object types
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 0dd67b184..1993504d7 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -787,6 +787,7 @@ proc typeSectionLeftSidePass(c: PContext, n: PNode) = s.typ.sym = s # process pragmas: if name.kind == nkPragmaExpr: pragma(c, s, name.sons[1], typePragmas) + if sfForward in s.flags: strTableAdd(c.graph.forwardedTypes, s) # add it here, so that recursive types are possible: if sfGenSym notin s.flags: addInterfaceDecl(c, s) a.sons[0] = newSymNode(s) |