blob: a749e65708e1a0213e37b381801839bc6f0638de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
template tmp[T](x: var seq[T]) =
#var yz: T # XXX doesn't work yet
x = @[1, 2, 3]
macro tmp2[T](x: var seq[T]): stmt =
nil
var y: seq[int]
tmp(y)
tmp(y)
echo y.repr
|