Skip to content

Commit 09793dd

Browse files
committed
Not finding a name in a module isn't a bug, it's an error. Report it as such.
1 parent 1bd331b commit 09793dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/boot/me/type.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,9 @@ let check_stmt (cx:Semant.ctxt) : (fn_ctx -> Ast.stmt -> unit) =
438438
try
439439
Hashtbl.find items id
440440
with Not_found ->
441-
Common.bug
442-
()
443-
"internal_check_ext_lval: ident %s not found in mod item"
441+
Common.err
442+
None
443+
"the name '%s' can't be found in the module"
444444
id
445445
in
446446
let lty =

0 commit comments

Comments
 (0)