compiler: show name of instantiating context in error traces (#6763) (#9207)

This commit is contained in:
xzfc 2018-10-11 14:34:56 +07:00 • committed by Andreas Rumpf
commit 8fc7cecfa2
9 changed files with 31 additions and 19 deletions

View file

@ -348,7 +348,7 @@ proc generateInstance(c: PContext, fn: PSym, pt: TIdTable,
let gp = n.sons[genericParamsPos]
internalAssert c.config, gp.kind != nkEmpty
n.sons[namePos] = newSymNode(result)
pushInfoContext(c.config, info)
pushInfoContext(c.config, info, fn.detailedInfo)
var entry = TInstantiation.new
entry.sym = result
# we need to compare both the generic types and the concrete types: