mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-26 10:32:01 +00:00
exportc is now not allowed for type aliases (#9979)
This commit is contained in:
committed by
Andreas Rumpf
parent
9fb8c3d965
commit
7c5ae00887
@@ -1101,6 +1101,8 @@ proc typeSectionRightSidePass(c: PContext, n: PNode) =
|
||||
#debug s.typ
|
||||
s.ast = a
|
||||
popOwner(c)
|
||||
if sfExportc in s.flags and s.typ.kind == tyAlias:
|
||||
localError(c.config, name.info, "{.exportc.} not allowed for type aliases")
|
||||
let aa = a.sons[2]
|
||||
if aa.kind in {nkRefTy, nkPtrTy} and aa.len == 1 and
|
||||
aa.sons[0].kind == nkObjectTy:
|
||||
|
||||
Reference in New Issue
Block a user