Revert "test cases for the new features"

This reverts commit 66653e8f14.
This commit is contained in:
Araq 2013-05-27 23:16:00 +02:00
commit e1b668c868
4 changed files with 4 additions and 78 deletions

View file

@ -5,8 +5,6 @@ type
T1 = expr
T2 = expr
Numeric = int|float
proc takesExpr(x, y) =
echo x, y
@ -34,22 +32,3 @@ takesFoo(f, f)
takes2Types(1, 1, "string")
takes2Types[string, int]("test", "test", 1)
proc takesSeq(x: seq) =
echo "seq"
takesSeq(@[1, 2, 3])
takesSeq(@["x", "y", "z"])
proc takesSeqOfFoos(x: seq[TFoo]) =
echo "foo seq"
var sf = newSeq[TFoo[int]](3)
takesSeq(sf)
takesSeqOfFoos(sf)
proc takesFooOfNumeric(x: TFoo[Numeric]) =
echo "foo of numeric"
takesFooOfNumeric(sf[0])