diff options
author | Zahary Karadjov <zahary@gmail.com> | 2020-03-30 03:47:02 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-04-01 19:38:44 +0200 |
commit | d374c6373bed4d6807ff70b6179328e79fbe1ac8 (patch) | |
tree | 30b2b76bd8a95b0f5a9ee224863763323501061a /compiler/semexprs.nim | |
parent | 2b66d665679912e62244a94c134ce910838fc107 (diff) | |
download | Nim-d374c6373bed4d6807ff70b6179328e79fbe1ac8.tar.gz |
Fix tests/parallel/tguard2.nim
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index e405ec0ef..d920b0f25 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -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 |