diff options
author | Araq <rumpf_a@web.de> | 2016-12-30 00:59:10 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-12-30 00:59:10 +0100 |
commit | 4104ee121dc08b50b90bf9ce3b62740b60244673 (patch) | |
tree | 30f75f3aeb761f422892d7ed51aa91fcac351c37 /tests/ccgbugs | |
parent | 700c024e1366b3478934237e27ead75009ac0c41 (diff) | |
download | Nim-4104ee121dc08b50b90bf9ce3b62740b60244673.tar.gz |
fixes #5147
Diffstat (limited to 'tests/ccgbugs')
-rw-r--r-- | tests/ccgbugs/tsighash_typename_regression.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ccgbugs/tsighash_typename_regression.nim b/tests/ccgbugs/tsighash_typename_regression.nim new file mode 100644 index 000000000..7122902d9 --- /dev/null +++ b/tests/ccgbugs/tsighash_typename_regression.nim @@ -0,0 +1,10 @@ +# bug #5147 + +proc foo[T](t: T) = + type Wrapper = object + get: T + let w = Wrapper(get: t) + echo w.get + +foo(123) +foo("baz") |