summary refs log tree commit diff stats
path: root/compiler/astalgo.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-04-16 13:42:33 +0300
committerZahary Karadjov <zahary@gmail.com>2017-04-16 13:42:33 +0300
commit4da8536701516f88cf2a04152abb8d8a276042d6 (patch)
tree589043f63bdaac5cc64a4cc2511de052c89e00b4 /compiler/astalgo.nim
parentdfbafff2e7cbadd28cade976520f86848a00a7c9 (diff)
downloadNim-4da8536701516f88cf2a04152abb8d8a276042d6.tar.gz
fix compilation regression in alea
Diffstat (limited to 'compiler/astalgo.nim')
-rw-r--r--compiler/astalgo.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim
index f8435f359..1fc8b7cea 100644
--- a/compiler/astalgo.nim
+++ b/compiler/astalgo.nim
@@ -81,6 +81,8 @@ template mdbg*: bool {.dirty.} =
       p.lex.fileIdx == gProjectMainIdx
     else:
       p.module.module.fileIdx == gProjectMainIdx
+  elif compiles(m.module.fileIdx):
+    m.module.fileIdx == gProjectMainIdx
   elif compiles(L.fileIdx):
     L.fileIdx == gProjectMainIdx
   else: