diff options
author | flywind <xzsflywind@gmail.com> | 2021-03-25 14:06:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-25 07:06:30 +0100 |
commit | 76d391a512b53b731941d6b355fe3431fc6b74c1 (patch) | |
tree | ff0cf460b7a535ff7e073402b4e86df236ab4ebd /compiler | |
parent | 355985ac89dd13d5b317744b30842155d9321565 (diff) | |
download | Nim-76d391a512b53b731941d6b355fe3431fc6b74c1.tar.gz |
remove unnecessary check (#17502)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/spawn.nim | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/spawn.nim b/compiler/spawn.nim index 54ed51dbc..1635f9f83 100644 --- a/compiler/spawn.nim +++ b/compiler/spawn.nim @@ -371,8 +371,6 @@ proc wrapProcForSpawn*(g: ModuleGraph; idgen: IdGenerator; owner: PSym; spawnExp fn = indirectAccess(castExpr, field, n.info) elif fn.kind == nkSym and fn.sym.kind == skIterator: localError(g.config, n.info, "iterator in spawn environment is not allowed") - elif fn.typ.callConv == ccClosure: - localError(g.config, n.info, "closure in spawn environment is not allowed") call.add(fn) var varSection = newNodeI(nkVarSection, n.info) |