Skip to content

Commit

Permalink
fixes a long standing bug with varargs type inference [backport] (#23720
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Araq authored Jun 14, 2024
1 parent 8037bbe commit 5996b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/sigmatch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2491,7 +2491,7 @@ proc arrayConstr(c: PContext, n: PNode): PType =
result = newTypeS(tyArray, c)
rawAddSon(result, makeRangeType(c, 0, 0, n.info))
addSonSkipIntLit(result, skipTypes(n.typ,
{tyGenericInst, tyVar, tyLent, tyOrdinal}), c.idgen)
{tyVar, tyLent, tyOrdinal}), c.idgen)

proc arrayConstr(c: PContext, info: TLineInfo): PType =
result = newTypeS(tyArray, c)
Expand Down

0 comments on commit 5996b12

Please sign in to comment.