Thanks for the reply, I created an issue on Github:
[https://github.com/nim-lang/Nim/issues/7451](https://github.com/nim-lang/Nim/issues/7451)
Looks like a bug, type pragmas are not seen on the user side
type
User {.exportc, packed.} = object
id: int
import macros
macro test(t: typedesc): untyped =
echo t.getType()[1].symbol.getImpl.treerepr
test(User)
gives
Is there a way to check an object type for a custom pragma?
In the manual there's an example of a custom annotation on a type, but it isn't
([https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-custom-annotations](https://nim-lang.org/docs/manual.html#implementation-specific-pra