Try conversion to static[T] in generic instantation (#8443)

Fixes #8439
This commit is contained in:
LemonBoy 2018-07-30 10:51:14 +02:00 • committed by Andreas Rumpf
commit c3a9ac4d35
2 changed files with 19 additions and 1 deletions

10
tests/generics/t8439.nim Normal file
View file

@ -0,0 +1,10 @@
discard """
output: "1"
"""
type
Cardinal = enum
north, east, south, west
proc foo[cardinal: static[Cardinal]](): int = 1
echo(foo[north]())