Revert "Revert "test cases for the new features""

This reverts commit e1b668c868.
This commit is contained in:
Zahary Karadjov 2013-08-19 01:17:07 +03:00
commit f127bc387a
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)