WIP implementation of except ExcType as ident syntax. Refs #3691.
This commit is contained in:
parent
e88a0af494
commit
e8c46d29cd
4 changed files with 82 additions and 3 deletions
|
|
@ -1584,6 +1584,13 @@ proc skipStmtList*(n: PNode): PNode =
|
|||
else:
|
||||
result = n
|
||||
|
||||
proc toRef*(typ: PType): PType =
|
||||
result = typ
|
||||
if typ.kind == tyObject:
|
||||
# Convert to a `ref T`.
|
||||
result = newType(tyRef, typ.owner)
|
||||
rawAddSon(result, typ)
|
||||
|
||||
when false:
|
||||
proc containsNil*(n: PNode): bool =
|
||||
# only for debugging
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue