Skip to content

Commit

Permalink
refs #11947; FieldError fixed (#11950)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour authored and Araq committed Aug 15, 2019
1 parent a25d43c commit 630e18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/semgnrc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 630e18a

Please sign in to comment.