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
|
case t.kind
|
||||||
of tyVar:
|
of tyVar:
|
||||||
result = mutableView
|
result = mutableView
|
||||||
of tyLent, tyOpenArray:
|
of tyLent, tyOpenArray, tyVarargs:
|
||||||
result = immutableView
|
result = immutableView
|
||||||
of tyGenericInst, tyDistinct, tyAlias, tyInferred, tySink, tyOwned,
|
of tyGenericInst, tyDistinct, tyAlias, tyInferred, tySink, tyOwned,
|
||||||
tyUncheckedArray, tySequence, tyArray, tyRef, tyStatic:
|
tyUncheckedArray, tySequence, tyArray, tyRef, tyStatic:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue