123456789101112131415161718192021222324252627282930313233343536373839 |
- discard """
- matrix: "--gc:refc; --gc:orc"
- """
- block:
- iterator mvalues(t: var seq[seq[int]]): var seq[int] =
- yield t[0]
- var t: seq[seq[int]]
- while false:
- for v in t.mvalues:
- discard
- proc ok =
- while false:
- for v in t.mvalues:
- discard
- ok()
- block:
- iterator mvalues(t: var seq[seq[int]]): lent seq[int] =
- yield t[0]
- var t: seq[seq[int]]
- while false:
- for v in t.mvalues:
- discard
- proc ok =
- while false:
- for v in t.mvalues:
- discard
- ok()
|