Nim
Nim copied to clipboard
fixes #20155; repr range with distinct types is broken with ORC
fixes #20155; I tried my best and had to do some hacks with typetrait support to my knowledge.
template repr*(x: distinct): string
will match range types with distinct subtypes. To repr the real distinct type, we need to skip the range types, otherwise it causes endless recursion.
Please explain the problem and your solution more.
@ringabout Sorry about this - I accidentally merged this PR. Could you make another one?
Thanks for your hard work on this PR! The lines below are statistics of the Nim compiler built from 37b3f62eef16b0e7cb89e18f9ddc1fb96e17fb1b
Hint: mm: orc; threads: on; opt: speed; options: -d:release 164169 lines; 12.722s; 842.562MiB peakmem
@Varriount, sure