diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-07-02 07:19:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 16:19:43 +0200 |
commit | a6cbe58e8c5a9b89d749d9935ee39192de3246d9 (patch) | |
tree | e17a5ff00a5ced96996d20a561ce799077fa016a /compiler | |
parent | dc5a40f3f39c6ea672e6dc6aca7f8118a69dda99 (diff) | |
download | Nim-a6cbe58e8c5a9b89d749d9935ee39192de3246d9.tar.gz |
typetraits.$: $((int, float), int)` is now `"((int, float), int)"` instead of `"(tuple of (int, float), int)" (#14812)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/types.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/types.nim b/compiler/types.nim index 0be0b3eed..1f787a4e5 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -636,8 +636,7 @@ proc typeToString(typ: PType, prefer: TPreferedDesc = preferName): string = elif t.len == 0: result = "tuple[]" else: - if prefer == preferTypeName: result = "(" - else: result = "tuple of (" + result = "(" for i in 0..<t.len: result.add(typeToString(t[i])) if i < t.len - 1: result.add(", ") |