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:
parent
7372a4c4aa
commit
f1a945b05f
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue