fixes .raises inference for newSeq builtin under --gc:orc [backport] (#19158)
This commit is contained in:
parent
6976d18519
commit
309ec7167e
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ proc prepareSeqAdd(len: int; p: pointer; addlen, elemSize, elemAlign: int): poin
|
|||
q.cap = newCap
|
||||
result = q
|
||||
|
||||
proc shrink*[T](x: var seq[T]; newLen: Natural) {.tags: [].} =
|
||||
proc shrink*[T](x: var seq[T]; newLen: Natural) {.tags: [], raises: [].} =
|
||||
when nimvm:
|
||||
setLen(x, newLen)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue