fixes #5147
This commit is contained in:
parent
700c024e13
commit
4104ee121d
2 changed files with 35 additions and 7 deletions
10
tests/ccgbugs/tsighash_typename_regression.nim
Normal file
10
tests/ccgbugs/tsighash_typename_regression.nim
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue