summary refs log tree commit diff stats
path: root/tests/pragmas/t5149.nim
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2019-01-03 00:31:06 +0530
committerAndreas Rumpf <rumpf_a@web.de>2019-01-02 20:01:06 +0100
commit7c5ae008874e7bb76214bca96267bcb400a723d1 (patch)
tree24b80aa283364b5e37bf7bbee9feee411ae693e7 /tests/pragmas/t5149.nim
parent9fb8c3d965ebf760c0636838eec1217ee7be7caa (diff)
downloadNim-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.nim12
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"