first implementation of package level types that allow forwarding across module boundaries
This commit is contained in:
parent
c6235920cb
commit
7889692523
7 changed files with 47 additions and 21 deletions
|
|
@ -1668,5 +1668,5 @@ template hasDestructor*(t: PType): bool = tfHasAsgn in t.flags
|
|||
template incompleteType*(t: PType): bool =
|
||||
t.sym != nil and {sfForward, sfNoForward} * t.sym.flags == {sfForward}
|
||||
|
||||
template typeCompleted*(t: PType) =
|
||||
incl t.sym.flags, sfNoForward
|
||||
template typeCompleted*(s: PSym) =
|
||||
incl s.flags, sfNoForward
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue