Skip to content

Commit

Permalink
Fix solver alias resolver for unresolved alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Octachron committed May 4, 2023
1 parent 6deefcb commit 6e2de90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/solver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ struct
match Envt.resolve_alias path env with
| Some x -> x
| None ->
let name = Unitname.modulize (String.concat Filename.dir_sep path) in
{ name; namespace = [] }
let top_unit = Unitname.modulize (List.hd path) in
{ name=top_unit; namespace = [] }

let blocker = Eval.block

Expand Down
2 changes: 1 addition & 1 deletion tests/run.ml
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ let result =
"M2l"; "Modname"; "Unitname"; "Module"; "Mresult"; "Namespaced";
"Option"; "Pp"; "Paths"; "Pkg"; "Read"; "Unit"; "Fault";
"Standard_faults"; "Uloc"],
["List";"Filename";"Map";"Format";"String"],[]);
["List";"Map";"Format"],[]);
"standard_faults.ml", (
["Fault"; "Format_tags"; "Module"; "Namespaced"; "Paths"; "Pp"
; "Pkg"; "Loc"; "Schematic"; "Uloc" ],
Expand Down

0 comments on commit 6e2de90

Please sign in to comment.