Fix tests/parallel/tguard2.nim

This commit is contained in:
Zahary Karadjov 2020-03-30 03:47:02 +03:00 • committed by Andreas Rumpf
commit d374c6373b
3 changed files with 5 additions and 3 deletions

View file

@ -2082,7 +2082,7 @@ proc tryExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
var err: string
try:
result = semExpr(c, n, flags)
if result != nil:
if result != nil and efNoSem2Check notin flags:
trackStmt(c, c.module, result, isTopLevel = false)
if c.config.errorCounter != oldErrorCount:
result = nil