Skip to content

Commit

Permalink
remove preemptive fix for now + comment reason for line above
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Aug 11, 2024
1 parent 00a08eb commit 0334fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/lookups.nim
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ proc qualifiedLookUp*(c: PContext, n: PNode, flags: set[TLookupFlag]): PSym =

proc initOverloadIter*(o: var TOverloadIter, c: PContext, n: PNode): PSym =
if n.kind == nkOpenSym:
# maybe the logic in semexprs should be mirrored here instead
# for now it only seems this is called for `pickSym` in `getTypeIdent`
return initOverloadIter(o, c, n[0])
o.importIdx = -1
o.marked = initIntSet()
Expand Down Expand Up @@ -803,8 +805,6 @@ proc symChoiceExtension(o: var TOverloadIter; c: PContext; n: PNode): PSym =
inc o.importIdx

proc nextOverloadIter*(o: var TOverloadIter, c: PContext, n: PNode): PSym =
var n = n
if n.kind == nkOpenSym: n = n[0]
case o.mode
of oimDone:
result = nil
Expand Down

0 comments on commit 0334fc7

Please sign in to comment.