mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-20 16:01:29 +00:00
fix #1001
This commit is contained in:
@@ -518,7 +518,7 @@ proc searchForInnerProcs(o: POuterContext, n: PNode) =
|
||||
else:
|
||||
internalError(it.info, "transformOuter")
|
||||
of nkProcDef, nkMethodDef, nkConverterDef, nkMacroDef, nkTemplateDef,
|
||||
nkClosure:
|
||||
nkClosure, nkTypeSection:
|
||||
# don't recurse here:
|
||||
# XXX recurse here and setup 'up' pointers
|
||||
discard
|
||||
|
||||
@@ -34,6 +34,7 @@ type
|
||||
T.x
|
||||
y(T)
|
||||
intval T.y
|
||||
let y = intval(T.y)
|
||||
|
||||
proc y(x: TObj): int = 10
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ type
|
||||
C.len is Ordinal
|
||||
items(c) is iterator
|
||||
for value in C:
|
||||
value.type is T
|
||||
type(value) is T
|
||||
|
||||
proc takesIntContainer(c: Container[int]) =
|
||||
for e in c: echo e
|
||||
|
||||
Reference in New Issue
Block a user