diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-07-30 10:51:14 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-07-30 10:51:14 +0200 |
commit | c3a9ac4d352a84fb47da0a4d5fc6f963b651bbec (patch) | |
tree | ffabccbe9fd3bf0c448661abc32c2b5c85b48580 /tests/generics | |
parent | becb6743f8197f53897cef1b2fda97f1784f961c (diff) | |
download | Nim-c3a9ac4d352a84fb47da0a4d5fc6f963b651bbec.tar.gz |
Try conversion to static[T] in generic instantation (#8443)
Fixes #8439
Diffstat (limited to 'tests/generics')
-rw-r--r-- | tests/generics/t8439.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/generics/t8439.nim b/tests/generics/t8439.nim new file mode 100644 index 000000000..69bd7cfcb --- /dev/null +++ b/tests/generics/t8439.nim @@ -0,0 +1,10 @@ +discard """ + output: "1" +""" + +type + Cardinal = enum + north, east, south, west + +proc foo[cardinal: static[Cardinal]](): int = 1 +echo(foo[north]()) |