summary refs log tree commit diff stats
path: root/compiler/cgen.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2013-08-15 22:55:11 +0300
committerZahary Karadjov <zahary@gmail.com>2013-08-19 01:48:25 +0300
commitca3a4ce6721c87cfcbb9eb02002ecf8aeb89233c (patch)
tree76a5fd56fc4ae9cd459d4703c3287b9a088aecb2 /compiler/cgen.nim
parent4980ef85e254178747dc8ea9fd59b058d33b2df1 (diff)
downloadNim-ca3a4ce6721c87cfcbb9eb02002ecf8aeb89233c.tar.gz
hacky fix for generic constraints matching
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r--compiler/cgen.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 787a2143f..0c3f2da84 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -861,8 +861,8 @@ proc isActivated(prc: PSym): bool = prc.typ != nil
 proc genProc(m: BModule, prc: PSym) = 
   if sfBorrow in prc.flags or not isActivated(prc): return
   fillProcLoc(prc)
-  if {sfForward, sfFromGeneric} * prc.flags != {}: addForwardedProc(m, prc)
-  else: 
+  if sfForward in prc.flags: addForwardedProc(m, prc)
+  else:
     genProcNoForward(m, prc)
     if {sfExportc, sfCompilerProc} * prc.flags == {sfExportc} and
         generatedHeader != nil and lfNoDecl notin prc.loc.Flags: