Skip to content

Commit

Permalink
Fix external declerations in inner modules
Browse files Browse the repository at this point in the history
  • Loading branch information
tjammer committed Sep 2, 2024
1 parent 2917e33 commit a5ea1e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/typing/env.ml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ let add_external ext_name ~cname typ loc env =
ext_name;
ext_typ = typ;
ext_cname = cname;
imported = None;
imported = Some (env.modpath, `C);
used;
closure = false;
}
Expand Down
3 changes: 3 additions & 0 deletions test/modules.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -1101,3 +1101,6 @@ Fix handling of parameterized abstract types
$ schmu -m nullvec.smu
$ schmu use_nullvec.smu
$ valgrind -q --leak-check=yes --show-reachable=yes ./use_nullvec

Fix external declarations in inner modules
$ schmu inner_module_externals.smu

0 comments on commit a5ea1e4

Please sign in to comment.