diff options
-rw-r--r-- | compiler/modules.nim | 2 | ||||
-rw-r--r-- | compiler/sem.nim | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/compiler/modules.nim b/compiler/modules.nim index 9a7f68495..6849be877 100644 --- a/compiler/modules.nim +++ b/compiler/modules.nim @@ -105,7 +105,7 @@ proc checkDepMem(fileIdx: int32): TNeedRecompile = resetModule(fileIdx) return Yes - when true: + when false: if gMemCacheData[fileIdx].needsRecompile != Maybe: return gMemCacheData[fileIdx].needsRecompile else: diff --git a/compiler/sem.nim b/compiler/sem.nim index bd7c97fcb..717e3b7eb 100644 --- a/compiler/sem.nim +++ b/compiler/sem.nim @@ -59,8 +59,7 @@ template semIdeForTemplateOrGeneric(c: PContext; n: PNode; # templates perform some quick check whether the cursor is actually in # the generic or template. when defined(nimsuggest): - assert gCmd == cmdIdeTools - if requiresCheck: + if gCmd == cmdIdeTools and requiresCheck: #if optIdeDebug in gGlobalOptions: # echo "passing to safeSemExpr: ", renderTree(n) discard safeSemExpr(c, n) |