This commit is contained in:
Araq 2016-12-30 00:59:10 +01:00
commit 4104ee121d
2 changed files with 35 additions and 7 deletions

View file

@ -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")