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