diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-05-14 07:44:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 07:44:39 +0200 |
commit | 2fba65b29f0d98d0c7cbd58ba151ec8622ffbd14 (patch) | |
tree | 18056ef5886cfb75e928e7d92a9a49d2cae8f48c /compiler | |
parent | a6d44212415ba06ec4dff225246110d735e8ac43 (diff) | |
download | Nim-2fba65b29f0d98d0c7cbd58ba151ec8622ffbd14.tar.gz |
fixes #7937 (#11244)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semmagic.nim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/semmagic.nim b/compiler/semmagic.nim index 7c75d8624..47ade5191 100644 --- a/compiler/semmagic.nim +++ b/compiler/semmagic.nim @@ -93,9 +93,10 @@ proc semInstantiationInfo(c: PContext, n: PNode): PNode = line.intVal = toLinenumber(info) var column = newNodeIT(nkIntLit, n.info, getSysType(c.graph, n.info, tyInt)) column.intVal = toColumn(info) - result.add(filename) - result.add(line) - result.add(column) + # filename: string, line: int, column: int + result.add(newTree(nkExprColonExpr, n.typ.n[0], filename)) + result.add(newTree(nkExprColonExpr, n.typ.n[1], line)) + result.add(newTree(nkExprColonExpr, n.typ.n[2], column)) proc toNode(t: PType, i: TLineInfo): PNode = result = newNodeIT(nkType, i, t) |