summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSon Ho2022-01-24 18:00:18 +0100
committerSon Ho2022-01-24 18:00:18 +0100
commit65c7ce1f695c66a1726b52ea55041d7fb4533aa7 (patch)
treee2cb0647b4b27fa8ccbf7671766c7b96d0ba619a /src
parent87920de32e7704be6b490462b241626f18cc96f7 (diff)
Make minor modifications
Diffstat (limited to '')
-rw-r--r--src/SymbolicToPure.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SymbolicToPure.ml b/src/SymbolicToPure.ml
index 8980361a..19fa85b3 100644
--- a/src/SymbolicToPure.ml
+++ b/src/SymbolicToPure.ml
@@ -111,6 +111,7 @@ let rec translate_sty (ctx : synth_ctx) (ty : T.sty) : ty =
let translate = translate_sty ctx in
match ty with
| T.Adt (type_id, regions, tys) ->
+ (* Can't translate types with regions for now *)
assert (regions = []);
let tys = List.map translate tys in
Adt (type_id, tys)
@@ -157,6 +158,8 @@ let translate_type_def (ctx : synth_ctx) (def : T.type_def) :
(* Translate *)
let def_id = def.T.def_id in
let name = type_to_name def in
+ (* Can't translate types with regions for now *)
+ assert (def.region_params = []);
let type_params = def.type_params in
let kind = translate_type_def_kind ctx def.T.kind in
let def = { def_id; name; type_params; kind } in