From 36a90c6044ecc1b5e193766b62ae4ea58aadf45d Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 10 Aug 2015 01:31:42 +0200 Subject: fixes #1965 --- compiler/semgnrc.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/semgnrc.nim') 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: -- cgit 1.4.1-2-gfad0