Skip to content

Commit

Permalink
fixes .raises inference for newSeq builtin under --gc:orc [backport] (n…
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored and PMunch committed Mar 28, 2022
1 parent 71b3dba commit 736c965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/seqs_v2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 736c965

Please sign in to comment.