Fixes multiple bugs with sink arguments (#9802)

* fixes #9781

* fix spacing
This commit is contained in:
cooldome 2018-11-26 08:45:45 +00:00 • committed by Andreas Rumpf
commit 2ac7f52388
4 changed files with 59 additions and 11 deletions

View file

@ -346,7 +346,7 @@ proc magicsAfterOverloadResolution(c: PContext, n: PNode,
result.info = n.info
result.typ = n.typ
else:
localError(c.config, n.info, "cannot evaluate 'sizeof' because its type is not defined completely")
localError(c.config, n.info, "cannot evaluate 'sizeof' because its type is not defined completely, type: " & n[1].typ.typeToString)
result = n
of mAlignOf:
result = newIntNode(nkIntLit, getAlign(c.config, n[1].typ))