work in progress: 'sink' and 'lent' types

This commit is contained in:
Araq 2018-01-07 10:17:19 +01:00
commit e316665b7b
5 changed files with 16 additions and 5 deletions

View file

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