bring back typetraits.$ for backward compatibility

Some packages are still using ``from typetraits import `$` ``
which is now available from system (no need to import it).
This commit is contained in:
narimiran
2019-03-14 17:09:33 +01:00
parent 7372a4c4aa
commit f1a945b05f

View File

@@ -10,6 +10,8 @@
## This module defines compile-time reflection procs for
## working with types.
export system.`$` # for backward compatibility
proc name*(t: typedesc): string {.magic: "TypeTrait".}
## Returns the name of the given type.