diff options
Diffstat (limited to 'compiler/semthreads.nim')
-rwxr-xr-x | compiler/semthreads.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semthreads.nim b/compiler/semthreads.nim index 09668a912..6c0259ef1 100755 --- a/compiler/semthreads.nim +++ b/compiler/semthreads.nim @@ -360,7 +360,8 @@ proc analyse(c: PProcCtx, n: PNode): TThreadOwner = if n.sons[0].kind != nkEmpty: result = analyse(c, n.sons[0]) else: result = toVoid of nkAsmStmt, nkPragma, nkIteratorDef, nkProcDef, nkMethodDef, - nkConverterDef, nkMacroDef, nkTemplateDef, nkLambdaKinds: + nkConverterDef, nkMacroDef, nkTemplateDef, nkLambdaKinds, nkClosure, + nkGotoState, nkState: result = toVoid of nkExprColonExpr: result = analyse(c, n.sons[1]) |