Fixes multiple bugs with sink arguments (#9802)
* fixes #9781 * fix spacing
This commit is contained in:
parent
410fd1deae
commit
2ac7f52388
4 changed files with 59 additions and 11 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue