exportc is now not allowed for type aliases (#9979)

This commit is contained in:
Neelesh Chandola 2019-01-03 00:31:06 +05:30 • committed by Andreas Rumpf
commit 7c5ae00887
2 changed files with 14 additions and 0 deletions

12
tests/pragmas/t5149.nim Normal file
View file

@ -0,0 +1,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"