Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Sep 29, 2024
1 parent 616a9a9 commit 1dab098
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/layeredtable.nim
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ proc setToPreviousLayer*(pt: var LayeredIdTable) =
pt = y[]

proc lookup(typeMap: ref LayeredIdTable, key: ItemId): PType =
result = nil
var tm = typeMap
while tm != nil:
result = getOrDefault(tm.topLayer, key)
Expand Down

0 comments on commit 1dab098

Please sign in to comment.