Not finding a name in a module isn't a bug, it's an error. Report it as such.

This commit is contained in:
Patrick Walton 2010-09-15 15:24:11 -07:00
parent 1bd331b7aa
commit 09793dd0c8

View File

@ -438,9 +438,9 @@ let check_stmt (cx:Semant.ctxt) : (fn_ctx -> Ast.stmt -> unit) =
try
Hashtbl.find items id
with Not_found ->
Common.bug
()
"internal_check_ext_lval: ident %s not found in mod item"
Common.err
None
"the name '%s' can't be found in the module"
id
in
let lty =