summaryrefslogtreecommitdiff
path: root/compiler/Substitute.ml
diff options
context:
space:
mode:
authorEscherichia2024-03-28 13:56:31 +0100
committerEscherichia2024-03-28 15:45:45 +0100
commit5ad671a0960692af1c00609fa6864c6f44ca299c (patch)
tree2c210b418d8b417ace12a95c1707095c47861c1b /compiler/Substitute.ml
parent0f0082c81db8852dff23cd4691af19c434c8be78 (diff)
Should answer all comments, there are still some TODO: error message left
Diffstat (limited to '')
-rw-r--r--compiler/Substitute.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/Substitute.ml b/compiler/Substitute.ml
index a35fdbf3..14cda863 100644
--- a/compiler/Substitute.ml
+++ b/compiler/Substitute.ml
@@ -80,9 +80,9 @@ let ctx_adt_value_get_instantiated_field_types (meta : Meta.meta) (ctx : eval_ct
| TAssumed aty -> (
match aty with
| TBox ->
- cassert (generics.regions = []) meta "Regions should be empty TODO: error message";
- cassert (List.length generics.types = 1) meta "Too many types TODO: error message";
- cassert (generics.const_generics = []) meta "const_generics should be empty TODO: error message";
+ sanity_check (generics.regions = []) meta;
+ sanity_check (List.length generics.types = 1) meta;
+ sanity_check (generics.const_generics = []) meta;
generics.types
| TArray | TSlice | TStr ->
(* Those types don't have fields *)