Skip to content

Commit

Permalink
bugfix: varargs count as open arrays (#19447)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6ea6225)
  • Loading branch information
Araq authored and narimiran committed Jan 26, 2022
1 parent 2fb1c80 commit a8e040e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/typeallowed.nim
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ proc classifyViewTypeAux(marker: var IntSet, t: PType): ViewTypeKind =
case t.kind
of tyVar:
result = mutableView
of tyLent, tyOpenArray:
of tyLent, tyOpenArray, tyVarargs:
result = immutableView
of tyGenericInst, tyDistinct, tyAlias, tyInferred, tySink, tyOwned,
tyUncheckedArray, tySequence, tyArray, tyRef, tyStatic:
Expand Down

0 comments on commit a8e040e

Please sign in to comment.