We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3029f3 commit 96e523cCopy full SHA for 96e523c
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 46e46d0b49de8e245d091f7062dfc28ab71e869e
+refs/heads/master: bba4cae1b8b6422a4d9569c7b84139c53834b4eb
trunk/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