diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-12-26 00:42:30 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-12-26 00:42:30 +0100 |
commit | c1627354d1fe5499c3d8b6886ce63de6e062a463 (patch) | |
tree | abda7e9d5089d52b395fac747d26318f5fd8c04a /compiler/semgnrc.nim | |
parent | 86bb9d8b4768b638ccbc603c26a4b5a70343ab3e (diff) | |
download | Nim-c1627354d1fe5499c3d8b6886ce63de6e062a463.tar.gz |
first implementation of the new lambda-lifting pass; barely anything works
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 620453277..6651de78e 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -58,7 +58,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, skModule: + of skProc, skMethod, skIterator, skConverter, skModule: result = symChoice(c, n, s, scOpen) of skTemplate: if macroToExpand(s): @@ -226,7 +226,7 @@ proc semGenericStmt(c: PContext, n: PNode, of skUnknown, skParam: # Leave it as an identifier. discard - of skProc, skMethod, skIterators, skConverter, skModule: + of skProc, skMethod, skIterator, skConverter, skModule: result.sons[0] = symChoice(c, fn, s, scOption) # do not check of 's.magic==mRoof' here because it might be some # other '^' but after overload resolution the proper one: |