Skip to content

Commit c7f546b

Browse files
committed
fixup
1 parent 9145fbd commit c7f546b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/types.nim

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ proc isFloatLit*(t: PType): bool {.inline.} =
124124
result = t.kind == tyFloat and t.n != nil and t.n.kind == nkFloatLit
125125

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

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

0 commit comments

Comments
 (0)