implemented 'import except'
This commit is contained in:
parent
0ef08e49e7
commit
92e10e4b18
14 changed files with 120 additions and 95 deletions
|
|
@ -825,6 +825,7 @@ proc semTypeNode(c: PContext, n: PNode, prev: PType): PType =
|
|||
checkSonsLen(n, 3)
|
||||
result = semTypeNode(c, n.sons[1], prev)
|
||||
if result.kind in NilableTypes and n.sons[2].kind == nkNilLit:
|
||||
# XXX this is wrong for tyString at least
|
||||
result.flags.incl(tfNotNil)
|
||||
else:
|
||||
LocalError(n.info, errGenerated, "invalid type")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue