Revert localErrorNode param order changes (#17809)
* Revert localErrorNode param order changes * Remove unused globalError overload * heh
This commit is contained in:
parent
7c64e49d45
commit
80389b8053
5 changed files with 20 additions and 13 deletions
|
|
@ -2620,7 +2620,7 @@ proc semTupleConstr(c: PContext, n: PNode, flags: TExprFlags): PNode =
|
|||
# check if either everything or nothing is tyTypeDesc
|
||||
for i in 1..<tupexp.len:
|
||||
if isTupleType != (tupexp[i].typ.kind == tyTypeDesc):
|
||||
return localErrorNode(c, n, "Mixing types and values in tuples is not allowed.", tupexp[i].info)
|
||||
return localErrorNode(c, n, tupexp[i].info, "Mixing types and values in tuples is not allowed.")
|
||||
if isTupleType: # expressions as ``(int, string)`` are reinterpret as type expressions
|
||||
result = n
|
||||
var typ = semTypeNode(c, n, nil).skipTypes({tyTypeDesc})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue