diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-09-23 23:22:53 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-09-23 23:22:53 +0200 |
commit | 1a61c4d46de11e957bdb6ff545bf52ccf15dbe06 (patch) | |
tree | c8f93a1b0abae22523f85dc7cf7720209ab57ce7 /compiler/ccgexprs.nim | |
parent | 2e93bac227bf266e710bf4966a0f93461033583a (diff) | |
download | Nim-1a61c4d46de11e957bdb6ff545bf52ccf15dbe06.tar.gz |
first implementation of the 'func' keyword
Diffstat (limited to 'compiler/ccgexprs.nim')
-rw-r--r-- | compiler/ccgexprs.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 25681c330..88944aea6 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -2039,7 +2039,7 @@ proc expr(p: BProc, n: PNode, d: var TLoc) = else: genProc(p.module, sym) putLocIntoDest(p, d, sym.loc) - of skProc, skConverter, skIterator: + of skProc, skConverter, skIterator, skFunc: #if sym.kind == skIterator: # echo renderTree(sym.getBody, {renderIds}) if sfCompileTime in sym.flags: @@ -2205,7 +2205,7 @@ proc expr(p: BProc, n: PNode, d: var TLoc) = discard of nkPragma: genPragma(p, n) of nkPragmaBlock: expr(p, n.lastSon, d) - of nkProcDef, nkMethodDef, nkConverterDef: + of nkProcDef, nkFuncDef, nkMethodDef, nkConverterDef: if n.sons[genericParamsPos].kind == nkEmpty: var prc = n.sons[namePos].sym # due to a bug/limitation in the lambda lifting, unused inner procs |