diff options
author | Araq <rumpf_a@web.de> | 2015-08-10 01:31:42 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-08-10 01:31:42 +0200 |
commit | 36a90c6044ecc1b5e193766b62ae4ea58aadf45d (patch) | |
tree | 84aa1f7587d26ad5536e5b1ecaa1180b00d82b6d /compiler/semgnrc.nim | |
parent | 799e0f3274edd9d0fadcc58640afa32b3bdc6da1 (diff) | |
download | Nim-36a90c6044ecc1b5e193766b62ae4ea58aadf45d.tar.gz |
fixes #1965
Diffstat (limited to 'compiler/semgnrc.nim')
-rw-r--r-- | compiler/semgnrc.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index 205af36a8..e3b598919 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -57,7 +57,7 @@ proc semGenericStmtSymbol(c: PContext, n: PNode, s: PSym, of skUnknown: # Introduced in this pass! Leave it as an identifier. result = n - of skProc, skMethod, skIterators, skConverter: + of skProc, skMethod, skIterators, skConverter, skModule: result = symChoice(c, n, s, scOpen) of skTemplate: if macroToExpand(s): @@ -225,7 +225,7 @@ proc semGenericStmt(c: PContext, n: PNode, of skUnknown, skParam: # Leave it as an identifier. discard - of skProc, skMethod, skIterators, skConverter: + of skProc, skMethod, skIterators, skConverter, skModule: result.sons[0] = symChoice(c, fn, s, scOption) first = 1 of skGenericParam: |