Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--declaredlocs now shows location for T instead of static in proc fn(a: static T) #17795

Merged
merged 2 commits into from
Apr 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup
  • Loading branch information
timotheecour committed Apr 23, 2021
commit 2979ee508fa60d846e6c15b336534dbd70aa29aa
3 changes: 0 additions & 3 deletions compiler/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ proc isFloatLit*(t: PType): bool {.inline.} =
result = t.kind == tyFloat and t.n != nil and t.n.kind == nkFloatLit

proc addDeclaredLoc*(result: var string, conf: ConfigRef; sym: PSym) =
var sym = sym
while sym.typ.kind in {tyStatic}:
sym = sym.typ[0].sym
result.add " [$1 declared in $2]" % [sym.kind.toHumanStr, toFileLineCol(conf, sym.info)]

proc addDeclaredLocMaybe*(result: var string, conf: ConfigRef; sym: PSym) =
Expand Down