* fix #17941: UnusedImport works for var/let/const/type invoked inside a generic * fixup
This commit is contained in:
parent
e224865b3b
commit
38b41f893a
4 changed files with 6 additions and 4 deletions
|
|
@ -262,7 +262,7 @@ proc expandIfNeeded[T](deq: var Deque[T]) =
|
|||
var n = newSeq[T](cap * 2)
|
||||
var i = 0
|
||||
for x in mitems(deq):
|
||||
when nimVM: n[i] = x # workaround for VM bug
|
||||
when nimvm: n[i] = x # workaround for VM bug
|
||||
else: n[i] = move(x)
|
||||
inc i
|
||||
deq.data = move(n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue