Merge pull request #8009 from yglukhov/remove-oldIterTransf
Removed oldIterTranf feature
This commit is contained in:
commit
76676cb79f
5 changed files with 4 additions and 109 deletions
|
|
@ -1556,8 +1556,6 @@ proc semYield(c: PContext, n: PNode): PNode =
|
|||
checkSonsLen(n, 1, c.config)
|
||||
if c.p.owner == nil or c.p.owner.kind != skIterator:
|
||||
localError(c.config, n.info, errYieldNotAllowedHere)
|
||||
elif oldIterTransf in c.features and c.p.inTryStmt > 0 and c.p.owner.typ.callConv != ccInline:
|
||||
localError(c.config, n.info, errYieldNotAllowedInTryStmt)
|
||||
elif n.sons[0].kind != nkEmpty:
|
||||
n.sons[0] = semExprWithType(c, n.sons[0]) # check for type compatibility:
|
||||
var iterType = c.p.owner.typ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue