We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e46d0 commit bba4caeCopy full SHA for bba4cae
src/boot/me/type.ml
@@ -295,7 +295,9 @@ let check_stmt (cx:Semant.ctxt) : (fn_ctx -> Ast.stmt -> unit) =
295
LTYPE_mono ty
296
else
297
LTYPE_poly ((Array.map (fun p -> p.Common.node) params), ty)
298
- | Ast.MOD_ITEM_const (ty, _) -> LTYPE_mono ty
+ | Ast.MOD_ITEM_const _ ->
299
+ let ty = Hashtbl.find cx.Semant.ctxt_all_item_types mid_id in
300
+ LTYPE_mono ty
301
| Ast.MOD_ITEM_type _ ->
302
Common.err None "Type-item used in non-type context"
303
in
0 commit comments