mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-01 17:41:17 +00:00
exportc is now not allowed for type aliases (#9979)
This commit is contained in:
committed by
Andreas Rumpf
parent
9fb8c3d965
commit
7c5ae00887
12
tests/pragmas/t5149.nim
Normal file
12
tests/pragmas/t5149.nim
Normal 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"
|
||||
Reference in New Issue
Block a user