Fixes 8616 (#8617)
* Don't leave dangling forward references to types Fixes #8616 * Add a test case for #8616
This commit is contained in:
parent
ba7c874a7d
commit
3cb963f114
4 changed files with 17 additions and 1 deletions
2
tests/ccgbugs/pkg8616/rtarray.nim
Normal file
2
tests/ccgbugs/pkg8616/rtarray.nim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
proc head*[T](pp: var array[1,T]): var T =
|
||||
result = pp[0]
|
||||
Loading…
Add table
Add a link
Reference in a new issue