summaryrefslogtreecommitdiff
path: root/src/initial_check.ml
diff options
context:
space:
mode:
authorAlasdair Armstrong2017-07-12 17:39:36 +0100
committerAlasdair Armstrong2017-07-12 17:39:36 +0100
commit73e54aeec2febe58424b44c2c8f649b29910f3d9 (patch)
tree7b33282aa8f377ce06a8add23ed2226015bcbdb6 /src/initial_check.ml
parentf804208d9c0f043c556a58878c723c8fd5a47a1c (diff)
Various small changes
* Experimented with using list<bit> to clean up manually monomorphised code in MIPS tlb * Added option -dtc_verbose to control verbosity of new typechecker * Allowed functions with val specs to omit their type declarations
Diffstat (limited to 'src/initial_check.ml')
-rw-r--r--src/initial_check.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/initial_check.ml b/src/initial_check.ml
index b6d4f863..df8fb678 100644
--- a/src/initial_check.ml
+++ b/src/initial_check.ml
@@ -779,7 +779,8 @@ let to_ast_rec (Parse_ast.Rec_aux(r,l): Parse_ast.rec_opt) : rec_opt =
let to_ast_tannot_opt (k_env:kind Envmap.t) (def_ord:order) (Parse_ast.Typ_annot_opt_aux(tp,l)):tannot_opt * kind Envmap.t * kind Envmap.t=
match tp with
- | Parse_ast.Typ_annot_opt_none -> raise (Reporting_basic.err_unreachable l "Parser generated typ annot opt none")
+ | Parse_ast.Typ_annot_opt_none ->
+ Typ_annot_opt_aux (Typ_annot_opt_none, l), k_env, Envmap.empty
| Parse_ast.Typ_annot_opt_some(tq,typ) ->
let typq,k_env,k_local = to_ast_typquant k_env tq in
Typ_annot_opt_aux(Typ_annot_opt_some(typq,to_ast_typ k_env def_ord typ),l),k_env,k_local