t22713.nim 172 B

123456789101112
  1. import std/macros
  2. template myPragma(x: int) {.pragma.}
  3. type
  4. A = object
  5. x: int64
  6. B {.myPragma(sizeof(A)).} = object
  7. doAssert B.getCustomPragmaVal(myPragma) == 8