bugfix: varargs count as open arrays (#19447)

This commit is contained in:
Andreas Rumpf
2022-01-25 08:08:22 +01:00
committed by GitHub
parent f7c4fb0014
commit 6ea6225523

View File

@@ -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: