summaryrefslogtreecommitdiff
path: root/compiler/InterpreterExpansion.ml
diff options
context:
space:
mode:
authorNadrieril2024-06-05 10:08:56 +0200
committerGuillaume Boisseau2024-06-06 09:36:36 +0200
commit7f2b8bf304f9c21f34c4be44a087cc15c56d6b07 (patch)
treefe3f354c716c17f217da7ec15a5d4630f5390d2e /compiler/InterpreterExpansion.ml
parent961cc880311aed3319b08755c5a43816e2490d7f (diff)
Filter out type aliases
Diffstat (limited to '')
-rw-r--r--compiler/InterpreterExpansion.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/InterpreterExpansion.ml b/compiler/InterpreterExpansion.ml
index 41190618..1690aa80 100644
--- a/compiler/InterpreterExpansion.ml
+++ b/compiler/InterpreterExpansion.ml
@@ -648,9 +648,9 @@ let greedy_expand_symbolics_with_borrows (config : config) (span : Meta.span) :
1 variants (option [greedy_expand_symbolics_with_borrows] \
of [config]): "
^ name_to_string ctx def.name)
- | Opaque ->
+ | Alias _ | Opaque ->
craise __FILE__ __LINE__ span
- "Attempted to greedily expand an opaque type");
+ "Attempted to greedily expand an alias or opaque type");
(* Also, we need to check if the definition is recursive *)
if ctx_type_decl_is_rec ctx def_id then
craise __FILE__ __LINE__ span