WIP implementation of except ExcType as ident syntax. Refs #3691.

This commit is contained in:
Dominik Picheta 2017-02-01 00:32:56 +01:00
commit e8c46d29cd
4 changed files with 82 additions and 3 deletions

View file

@ -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