This commit is contained in:
Andreas Rumpf
2016-01-30 15:45:45 +01:00
parent fb149d2eef
commit eea2a63607
2 changed files with 14 additions and 0 deletions

View File

@@ -57,6 +57,8 @@ proc parentObj(accessor: Rope; m: BModule): Rope {.inline.} =
proc genTraverseProc(c: var TTraversalClosure, accessor: Rope, typ: PType) =
if typ == nil: return
let typ = getUniqueType(typ)
var p = c.p
case typ.kind
of tyGenericInst, tyGenericBody, tyTypeDesc:

View File

@@ -0,0 +1,12 @@
# bug #3794
import options
proc getRef*(): Option[int] =
return none(int)
proc getChild*() =
let iter = iterator (): int {.closure.} =
let reference = getRef()