Skip to content

Commit 96e523c

Browse files
committed
---
yaml --- r: 713 b: refs/heads/master c: bba4cae h: refs/heads/master i: 711: 5f05311 v: v3
1 parent e3029f3 commit 96e523c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 46e46d0b49de8e245d091f7062dfc28ab71e869e
2+
refs/heads/master: bba4cae1b8b6422a4d9569c7b84139c53834b4eb

trunk/src/boot/me/type.ml

+3-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ let check_stmt (cx:Semant.ctxt) : (fn_ctx -> Ast.stmt -> unit) =
295295
LTYPE_mono ty
296296
else
297297
LTYPE_poly ((Array.map (fun p -> p.Common.node) params), ty)
298-
| Ast.MOD_ITEM_const (ty, _) -> LTYPE_mono ty
298+
| Ast.MOD_ITEM_const _ ->
299+
let ty = Hashtbl.find cx.Semant.ctxt_all_item_types mid_id in
300+
LTYPE_mono ty
299301
| Ast.MOD_ITEM_type _ ->
300302
Common.err None "Type-item used in non-type context"
301303
in

0 commit comments

Comments
 (0)