Skip to content

Commit

Permalink
fix #28527, error needed for using A.b where b is not a module
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored and Keno committed Aug 8, 2018
1 parent f463944 commit 59977eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/toplevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,8 @@ jl_value_t *jl_toplevel_eval_flex(jl_module_t *m, jl_value_t *e, int fast, int e
jl_module_use(m, import, name);
}
else {
if (!jl_is_module(u))
jl_errorf("invalid using path: \"%s\" does not name a module", jl_symbol_name(name));
// `using A.B` syntax
jl_module_using(m, u);
if (m == jl_main_module && name == NULL) {
Expand Down

0 comments on commit 59977eb

Please sign in to comment.