fixes #23564; `hasCustomPragma` skips alises types
fixes #23564
perhaps handle generic aliases (tyGenericInst for aliases types) if needed
It seems that we need to add an internal version of getTypeInst to skip aliases types
I would think it should be exposed to users as well. The first way I thought of doing it was to go in the impl for the type alias sym and recurse with the body as the type instead, but the body (Sym "T0") just has the alias type (T) as its sym which gets used by getTypeInst and causes a loop. Maybe skipAlias or something more general can be exposed instead. (might be fine to specialize since getType never represents a tyAlias).
Okay, I will add something like getTypeInstSkipAlias to skip aliases
Thanks for your hard work on this PR! The lines below are statistics of the Nim compiler built from 7e6fa9e2d6542a2fc1ab77fc42c2a47bd947b37c
Hint: mm: orc; opt: speed; options: -d:release 182762 lines; 8.393s; 659.68MiB peakmem