diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-04-20 22:00:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 07:00:45 +0200 |
commit | 8de053d8708d3547edeee8c4846b355a557f1d18 (patch) | |
tree | d140e510ee07e160b0ddace7e5878e355b9d715d /compiler/semexprs.nim | |
parent | 603af22b7ca46ac566f8c7c15402028f3f976a4e (diff) | |
download | Nim-8de053d8708d3547edeee8c4846b355a557f1d18.tar.gz |
fix `hintMsgOrigin` regression + simplify msgs code (#17805)
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 353831736..defceb291 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -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, tupexp[i].info, "Mixing types and values in tuples is not allowed.") + return localErrorNode(c, n, "Mixing types and values in tuples is not allowed.", tupexp[i].info) if isTupleType: # expressions as ``(int, string)`` are reinterpret as type expressions result = n var typ = semTypeNode(c, n, nil).skipTypes({tyTypeDesc}) |