blob: 21daf82bf174d4e5c58a4dc7f17f0cc671abc96d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
# D20180828T234921:here
template foo*(iter: untyped): untyped =
when compiles(iter.unexistingField): 0
elif compiles(iter.len): 1
else: 2
proc foo[A]()=
let a2 = @[10, 11]
let a3 = foo(pairs(a2))
foo[int]()
|