test cases for the new features

This commit is contained in:
Zahary Karadjov 2013-05-26 22:15:30 +03:00
commit 66653e8f14
4 changed files with 78 additions and 4 deletions

View file

@ -0,0 +1,17 @@
discard """
file: "tstaticparams.nim"
output: "abracadabra\ntest"
"""
type
TFoo[T; Val: expr[string]] = object
data: array[4, T]
proc takeFoo(x: TFoo) =
echo "abracadabra"
echo TFoo.Val
var x: TFoo[int, "test"]
takeFoo(x)