fix leftover comment from #9766
This commit is contained in:
parent
bf3a308e86
commit
fc7fcca9df
1 changed files with 5 additions and 7 deletions
|
|
@ -290,13 +290,11 @@ proc getMsgDiagnostic(c: PContext, flags: TExprFlags, n, f: PNode): string =
|
||||||
let sym = n.sons[1].typ.sym
|
let sym = n.sons[1].typ.sym
|
||||||
var typeHint = ""
|
var typeHint = ""
|
||||||
if sym == nil:
|
if sym == nil:
|
||||||
#[
|
# Perhaps we're in a `compiles(foo.bar)` expression, or
|
||||||
Perhaps we're in a `compiles(foo.bar)` expression, or
|
# in a concept, eg:
|
||||||
in a concept, eg:
|
# ExplainedConcept {.explain.} = concept x
|
||||||
ExplainedConcept {.explain.} = concept o
|
# x.foo is int
|
||||||
o.foo is int
|
# We coudl use: `(c.config $ n.sons[1].info)` to get more context.
|
||||||
We coudl use: `(c.config $ n.sons[1].info)` to get more context.
|
|
||||||
]#
|
|
||||||
discard
|
discard
|
||||||
else:
|
else:
|
||||||
typeHint = " for type " & getProcHeader(c.config, sym)
|
typeHint = " for type " & getProcHeader(c.config, sym)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue