Skip to content
Commit 17853dd7 authored by Stefan's avatar Stefan
Browse files

Finally implement the occurs check (and scope_level propagation)

* src/lexp.ml (ctx_length): Rename from scope_length.

* src/unification.ml (occurs_in): New function.
(_unify_metavar.unif): Use it to avoid circular types and
inconsistent generalization!
parent 098ca889
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment