summary refs log tree commit diff stats
path: root/tests/accept/compile/tconstraints.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-19 15:45:51 +0100
committerAraq <rumpf_a@web.de>2011-11-19 15:45:51 +0100
commita274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82 (patch)
tree95dc5bf7fe3716a3ab266f78094fccce38c94ccf /tests/accept/compile/tconstraints.nim
parentd0772feb08baaea12bfdad0a7c20a41733f977bd (diff)
downloadNim-a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82.tar.gz
got rid of 'accept' dir in the tests
Diffstat (limited to 'tests/accept/compile/tconstraints.nim')
-rwxr-xr-xtests/accept/compile/tconstraints.nim15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/accept/compile/tconstraints.nim b/tests/accept/compile/tconstraints.nim
deleted file mode 100755
index 7aef0d645..000000000
--- a/tests/accept/compile/tconstraints.nim
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-proc myGenericProc[T: object|tuple|int|ptr|ref|distinct](x: T): string = 
-  result = $x
-
-type
-  TMyObj = tuple[x, y: int]
-
-var
-  x: TMyObj
-
-assert myGenericProc(232) == "232"
-assert myGenericProc(x) == "(x: 0, y: 0)"
-
-