fix #13432 typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] (#14799)

* typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[]

* changelog
This commit is contained in:
Timothee Cour 2020-06-29 00:34:05 -07:00 • committed by GitHub
commit 1b41c3122b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 22 deletions

View file

@ -149,24 +149,3 @@ since (1, 1):
type T2 = T
genericParamsImpl(T2)
when isMainModule:
static:
doAssert $type(42) == "int"
doAssert int.name == "int"
const a1 = name(int)
const a2 = $(int)
const a3 = $int
doAssert a1 == "int"
doAssert a2 == "int"
doAssert a3 == "int"
proc fun[T: typedesc](t: T) =
const a1 = name(t)
const a2 = $(t)
const a3 = $t
doAssert a1 == "int"
doAssert a2 == "int"
doAssert a3 == "int"
fun(int)