mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-28 15:55:14 +00:00
Fixes #25704
This makes sure that `iter` still has `tyGenericInst` skipped like
before, without skipping it for `iterType` which requires it
(cherry picked from commit f9524861f3)
14 lines
226 B
Nim
14 lines
226 B
Nim
import std/[sugar, strutils]
|
|
|
|
type Res[T] = tuple[a: int, b: string]
|
|
iterator test(): Res[string] =
|
|
yield (1, "")
|
|
|
|
for (i, s) in test():
|
|
static:
|
|
echo typeof(i)
|
|
echo typeof(s)
|
|
let
|
|
a: int = i
|
|
b: string = s
|