improve --declaredLocs to help disambiguate types (generics, aliases etc) (#18389)
* improve --declaredlocs to help disambiguate types (generics, aliases etc) * avoid a cyclic deps * fix test after rebase
This commit is contained in:
parent
5a42f4a53e
commit
836b061ae3
8 changed files with 112 additions and 14 deletions
|
|
@ -988,7 +988,7 @@ proc semIndirectOp(c: PContext, n: PNode, flags: TExprFlags): PNode =
|
|||
break
|
||||
if not hasErrorType:
|
||||
let typ = n[0].typ
|
||||
msg.add(">\nbut expected one of: \n" &
|
||||
msg.add(">\nbut expected one of:\n" &
|
||||
typeToString(typ))
|
||||
# prefer notin preferToResolveSymbols
|
||||
# t.sym != nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue