diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2019-01-03 00:31:06 +0530 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-01-02 20:01:06 +0100 |
commit | 7c5ae008874e7bb76214bca96267bcb400a723d1 (patch) | |
tree | 24b80aa283364b5e37bf7bbee9feee411ae693e7 /tests/pragmas/t5149.nim | |
parent | 9fb8c3d965ebf760c0636838eec1217ee7be7caa (diff) | |
download | Nim-7c5ae008874e7bb76214bca96267bcb400a723d1.tar.gz |
exportc is now not allowed for type aliases (#9979)
Diffstat (limited to 'tests/pragmas/t5149.nim')
-rw-r--r-- | tests/pragmas/t5149.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pragmas/t5149.nim b/tests/pragmas/t5149.nim new file mode 100644 index 000000000..2d242a8d5 --- /dev/null +++ b/tests/pragmas/t5149.nim @@ -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" |