Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-dambovaliev committed Jan 16, 2025
1 parent 4913c76 commit 2d3f37c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gnovm/pkg/gnolang/preprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -4575,8 +4575,12 @@ func predefineNow2(store Store, last BlockNode, d Decl, stack *[]Name) (Decl, bo
if !file.IsInitialized() {
panic("all types from files in file-set should have already been predefined")
}

declaration := *decl
declaration.SetAttribute(ATTR_GLOBAL, true)

// predefine dependency (recursive).
*decl, _ = predefineNow2(store, file, *decl, stack)
*decl, _ = predefineNow2(store, file, declaration, stack)
} else {
break
}
Expand Down

0 comments on commit 2d3f37c

Please sign in to comment.