bugfix: varargs count as open arrays (#19447)
This commit is contained in:
parent
f7c4fb0014
commit
6ea6225523
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue