mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user