Skip to content

Commit

Permalink
Merge pull request #1940 from actonlang/actonc-allow-module-overlap
Browse files Browse the repository at this point in the history
Allow naming overlap for hierarchical modules
  • Loading branch information
plajjan authored Oct 9, 2024
2 parents 54ab03f + 6d5afc1 commit 746737a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/Acton/Env.hs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ addMod :: ModName -> TEnv -> EnvF x -> EnvF x
addMod m newte env = env{ modules = addM ns (modules env) }
where
ModName ns = m
addM [] te = newte
addM [] te = newte ++ te
addM (n:ns) te = update n ns te
update n ns ((x,i):te)
| n == x,
Expand Down

0 comments on commit 746737a

Please sign in to comment.