Skip to content

Commit

Permalink
Merge pull request #520 from GoldenbergDaniel/master
Browse files Browse the repository at this point in the history
Fix renaming locals not working in block scopes
  • Loading branch information
DanielGavin authored Oct 3, 2024
2 parents 2ce099f + 7888494 commit bd888dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/file_resolve.odin
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ resolve_node :: proc(node: ^ast.Node, data: ^FileResolveData) {
resolve_node(n.body, data)
resolve_node(n.else_stmt, data)
case ^Block_Stmt:
local_scope(data, n)
resolve_node(n.label, data)
resolve_nodes(n.stmts, data)
case ^Implicit:
Expand Down

0 comments on commit bd888dd

Please sign in to comment.