summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2022-01-25 08:08:22 +0100
committerGitHub <noreply@github.com>2022-01-25 08:08:22 +0100
commit6ea622552345fc9a6c451615079d2a0ebbc6c4ca (patch)
tree35ddba628e1ac62c5f5a074b2f159edcd2959e44
parentf7c4fb0014f320824d8f05e2e4d9776c09f51711 (diff)
downloadNim-6ea622552345fc9a6c451615079d2a0ebbc6c4ca.tar.gz
bugfix: varargs count as open arrays (#19447)
-rw-r--r--compiler/typeallowed.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/typeallowed.nim b/compiler/typeallowed.nim
index 78cd74e56..3d6ea0edb 100644
--- a/compiler/typeallowed.nim
+++ b/compiler/typeallowed.nim
@@ -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: