Fix tests/parallel/tguard2.nim
This commit is contained in:
parent
2b66d66567
commit
d374c6373b
3 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue