diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2019-08-14 21:04:38 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-08-15 06:04:38 +0200 |
commit | 630e18a6eb249bfa69fd7f0c05f9370e2308ce94 (patch) | |
tree | da72f9dce28e50ca6d34bb5abe40fd69cbb321cd /compiler | |
parent | a25d43ca6b5b9a918a7eacc528357699fe0529e4 (diff) | |
download | Nim-630e18a6eb249bfa69fd7f0c05f9370e2308ce94.tar.gz |
refs #11947; FieldError fixed (#11950)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semgnrc.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index 30f3ac03f..4116df357 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -282,7 +282,7 @@ proc semGenericStmt(c: PContext, n: PNode, # in threads.nim: the subtle preprocessing here binds 'globalsSlot' which # is not exported and yet the generic 'threadProcWrapper' works correctly. let flags = if mixinContext: flags+{withinMixin} else: flags - for i in first ..< sonsLen(result): + for i in first ..< safeLen(result): result.sons[i] = semGenericStmt(c, result.sons[i], flags, ctx) of nkCurlyExpr: result = newNodeI(nkCall, n.info) |