diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-08-08 23:51:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 08:51:39 +0200 |
commit | 8ce782d463b0bca091be5a34db190dc441c23ce4 (patch) | |
tree | a7ac51860dd2c40f66a99b607e362356594d5f36 /lib/system/repr_v2.nim | |
parent | 988c02b7cbef634523b87af04097d06ed453dd61 (diff) | |
download | Nim-8ce782d463b0bca091be5a34db190dc441c23ce4.tar.gz |
Add optional recursive arg to distinctBase (v2) (#18659)
* Add optional recursive arg to distinctBase * Add docs and examples Co-authored-by: ALANVF <alan.invents@gmail.com>
Diffstat (limited to 'lib/system/repr_v2.nim')
-rw-r--r-- | lib/system/repr_v2.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/repr_v2.nim b/lib/system/repr_v2.nim index 8471ea148..f99f09799 100644 --- a/lib/system/repr_v2.nim +++ b/lib/system/repr_v2.nim @@ -1,7 +1,7 @@ proc isNamedTuple(T: typedesc): bool {.magic: "TypeTrait".} ## imported from typetraits -proc distinctBase(T: typedesc): typedesc {.magic: "TypeTrait".} +proc distinctBase(T: typedesc, recursive: static bool = true): typedesc {.magic: "TypeTrait".} ## imported from typetraits proc repr*(x: NimNode): string {.magic: "Repr", noSideEffect.} |