t5149.nim 171 B

12345678910111213
  1. discard """
  2. errormsg: "{.exportc.} not allowed for type aliases"
  3. line: 9
  4. """
  5. type
  6. X* = object
  7. a: int
  8. Y* {.exportc.} = X
  9. proc impl*(x: X) =
  10. echo "it works"