summary refs log tree commit diff stats
path: root/tests/compile/tconstraints.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tconstraints.nim')
-rw-r--r--tests/compile/tconstraints.nim15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/compile/tconstraints.nim b/tests/compile/tconstraints.nim
deleted file mode 100644
index 7aef0d645..000000000
--- a/tests/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)"
-
-