Skip to content

Commit 5146b14

Browse files
authored
fix(compiler): Fix error location reporting of unbound modules and labels (#1577)
1 parent ac91bb2 commit 5146b14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/typed/env.re

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2732,7 +2732,9 @@ let () =
27322732
| Error(
27332733
(
27342734
Missing_module(loc, _, _) | Illegal_value_name(loc, _) |
2735-
Value_not_found_in_module(loc, _, _)
2735+
Value_not_found_in_module(loc, _, _) |
2736+
Unbound_module(loc, _) |
2737+
Unbound_label(loc, _)
27362738
) as err,
27372739
)
27382740
when loc != Location.dummy_loc =>

0 commit comments

Comments
 (0)