summaryrefslogtreecommitdiff
path: root/src/initial_check.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/initial_check.ml')
-rw-r--r--src/initial_check.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/initial_check.ml b/src/initial_check.ml
index df715e17..e80ff9a4 100644
--- a/src/initial_check.ml
+++ b/src/initial_check.ml
@@ -238,6 +238,9 @@ and to_ast_nexp (k_env : kind Envmap.t) (n: Parse_ast.atyp) : Ast.nexp =
let n1 = to_ast_nexp k_env t1 in
let n2 = to_ast_nexp k_env t2 in
Nexp_aux (Nexp_minus (n1, n2), l)
+ | Parse_ast.ATyp_app (id, ts) ->
+ let nexps = List.map (to_ast_nexp k_env) ts in
+ Nexp_aux (Nexp_app (to_ast_id id, nexps), l)
| _ -> typ_error l "Required an item of kind Nat, encountered an illegal form for this kind" None None None)
and to_ast_order (k_env : kind Envmap.t) (def_ord : order) (o: Parse_ast.atyp) : Ast.order =