work in progress: 'sink' and 'lent' types
This commit is contained in:
parent
06e68feadb
commit
e316665b7b
5 changed files with 16 additions and 5 deletions
|
|
@ -739,7 +739,9 @@ proc semRaise(c: PContext, n: PNode): PNode =
|
|||
if base.sym.magic == mException:
|
||||
break
|
||||
if base.lastSon == nil:
|
||||
localError(n.info, "raised object of type $1 does not inherit from Exception", [typ.sym.name.s])
|
||||
localError(n.info,
|
||||
"raised object of type $1 does not inherit from Exception",
|
||||
[typeToString(typ)])
|
||||
return
|
||||
base = base.lastSon
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue