diff options
author | Araq <rumpf_a@web.de> | 2018-02-10 20:39:05 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-02-10 20:55:21 +0100 |
commit | ef6eda4cb4b28a6c4a2706ea56240bc708e36349 (patch) | |
tree | 9f7596b6a4127d40a146d56bfb25a1f345e2fd8e /compiler/semexprs.nim | |
parent | 51d81c4e23c7f5513a1b2028f02509c860021278 (diff) | |
download | Nim-ef6eda4cb4b28a6c4a2706ea56240bc708e36349.tar.gz |
better error messages: use <T1, T2> instead of (T1, T2) in order to prevent confusions with tuple types
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 d4b1eec88..7f58e266e 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -735,7 +735,7 @@ proc semIndirectOp(c: PContext, n: PNode, flags: TExprFlags): PNode = hasErrorType = true break if not hasErrorType: - add(msg, ")\n" & msgKindToString(errButExpected) & "\n" & + add(msg, ">\n" & msgKindToString(errButExpected) & "\n" & typeToString(n.sons[0].typ)) localError(n.info, errGenerated, msg) return errorNode(c, n) |