summary refs log tree commit diff stats
path: root/compiler/lambdalifting.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2013-05-26 21:06:39 +0300
committerZahary Karadjov <zahary@gmail.com>2013-05-26 21:06:39 +0300
commit911e6e710f28f454cf8bc1bb493c1a28c4694b76 (patch)
treec1b4ca3a7fa14fa4aa3ec6b36bd85a693f511b46 /compiler/lambdalifting.nim
parent4ae4005f805c5b2e329b2e060fcf40169238a9f9 (diff)
downloadNim-911e6e710f28f454cf8bc1bb493c1a28c4694b76.tar.gz
more test made green
the lambda lifting was trying too hard to ignore generic prods
isGenericRoutine was producing false-negatives and only
this allowed for some of the warning and error messages
to be triggered.

some files with mixed line endings were fixed
Diffstat (limited to 'compiler/lambdalifting.nim')
-rw-r--r--compiler/lambdalifting.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lambdalifting.nim b/compiler/lambdalifting.nim
index 163ea4136..9a40b350e 100644
--- a/compiler/lambdalifting.nim
+++ b/compiler/lambdalifting.nim
@@ -220,7 +220,7 @@ proc getHiddenParam(routine: PSym): PSym =
 
 proc isInnerProc(s, outerProc: PSym): bool {.inline.} =
   result = s.kind in {skProc, skMethod, skConverter} and
-    s.owner == outerProc and not isGenericRoutine(s)
+    s.owner == outerProc
   #s.typ.callConv == ccClosure
 
 proc addClosureParam(i: PInnerContext, e: PEnv) =