diff options
Diffstat (limited to 'tests/reject/tconstraints.nim')
-rwxr-xr-x | tests/reject/tconstraints.nim | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/reject/tconstraints.nim b/tests/reject/tconstraints.nim deleted file mode 100755 index e61095fff..000000000 --- a/tests/reject/tconstraints.nim +++ /dev/null @@ -1,18 +0,0 @@ -discard """ - line: 16 - errormsg: "type mismatch: got (int literal(232))" -""" - -proc myGenericProc[T: object|tuple|ptr|ref|distinct](x: T): string = - result = $x - -type - TMyObj = tuple[x, y: int] - -var - x: TMyObj - -assert myGenericProc(x) == "(x: 0, y: 0)" -assert myGenericProc(232) == "232" - - |