mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
* fix #22548;environment misses for type reference in iterator access nested in closure * fix #21737 * Update lambdalifting.nim * remove containsCallKinds * simplify
22 lines
241 B
Nim
22 lines
241 B
Nim
discard """
|
|
action: compile
|
|
"""
|
|
|
|
type Xxx[T] = object
|
|
|
|
iterator x(v: string): char =
|
|
var v2: Xxx[int]
|
|
|
|
var y: v2.T
|
|
|
|
echo y
|
|
|
|
proc bbb(vv: string): proc () =
|
|
proc xxx() =
|
|
for c in x(vv):
|
|
echo c
|
|
|
|
return xxx
|
|
|
|
bbb("test")()
|