diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-05-12 21:55:55 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-05-12 21:55:55 +0300 |
commit | 289c975d85a71e5ee57e2995e41d932a4f80b5c7 (patch) | |
tree | b87a6ac8198fca7b70f0b8301d38ad5fa068bada /tests/reject | |
parent | b3103c4657a3700e13f90fa1b4be888f023eb604 (diff) | |
download | Nim-289c975d85a71e5ee57e2995e41d932a4f80b5c7.tar.gz |
fixes #430
Diffstat (limited to 'tests/reject')
-rw-r--r-- | tests/reject/tbindtypedesc.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/reject/tbindtypedesc.nim b/tests/reject/tbindtypedesc.nim new file mode 100644 index 000000000..d6fbae537 --- /dev/null +++ b/tests/reject/tbindtypedesc.nim @@ -0,0 +1,12 @@ +discard """ + line: 11 + file: "tbindtypedesc.nim" + errormsg: "type mismatch: got (typedesc[float], string)" +""" + +proc foo(T: typedesc; some: T) = + echo($some) + +foo int, 4 +foo float, "bad" + |