From 7287d3aaa0545a9b22cea874f2d751de4fefd23d Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Tue, 14 Sep 2010 10:52:32 -0700 Subject: Teach front-end about simple, first-cut version of const items. --- src/boot/me/semant.ml | 1 + 1 file changed, 1 insertion(+) (limited to 'src/boot/me/semant.ml') diff --git a/src/boot/me/semant.ml b/src/boot/me/semant.ml index 9521df94..463acadb 100644 --- a/src/boot/me/semant.ml +++ b/src/boot/me/semant.ml @@ -1366,6 +1366,7 @@ let ty_of_mod_item (item:Ast.mod_item) : Ast.ty = Ast.MOD_ITEM_type _ -> Ast.TY_type | Ast.MOD_ITEM_fn f -> (Ast.TY_fn (ty_fn_of_fn f)) | Ast.MOD_ITEM_mod _ -> bug () "Semant.ty_of_mod_item on mod" + | Ast.MOD_ITEM_const (ty, _) -> ty | Ast.MOD_ITEM_obj ob -> let taux = { Ast.fn_effect = Ast.PURE; Ast.fn_is_iter = false } -- cgit v1.2.3