Skip to content

Commit 14ea4be

Browse files
committed
address comments
1 parent a507895 commit 14ea4be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/semgnrc.nim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,9 @@ proc semGenericStmt(c: PContext, n: PNode,
290290
# is not exported and yet the generic 'threadProcWrapper' works correctly.
291291
let flags = if mixinContext: flags+{withinMixin} else: flags
292292
for i in first..<result.safeLen:
293-
let flags = if mixinContext: flags+{withinMixin} else: flags
294293
# instead, would be better to only set `withinMixin` for arguments of
295294
# kind tyUntyped, eg `if s.typ[i].kind == tyUntyped:`, however, this
296-
# currentl doesn't work
295+
# currently doesn't work
297296
result[i] = semGenericStmt(c, result[i], flags, ctx)
298297
of nkCurlyExpr:
299298
result = newNodeI(nkCall, n.info)

0 commit comments

Comments
 (0)