summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-07-02 07:19:43 -0700
committerGitHub <noreply@github.com>2020-07-02 16:19:43 +0200
commita6cbe58e8c5a9b89d749d9935ee39192de3246d9 (patch)
treee17a5ff00a5ced96996d20a561ce799077fa016a /compiler
parentdc5a40f3f39c6ea672e6dc6aca7f8118a69dda99 (diff)
downloadNim-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.nim3
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(", ")