ocaml-gospel / gospel

A tool-agnostic formal specification language for OCaml.
https://ocaml-gospel.github.io/gospel
MIT License
128 stars 16 forks source link

Take recursivity into account when typing type declarations #304

Closed shym closed 1 year ago

shym commented 1 year ago

Before, type declarations were considered always recursive. Route the recursivity information to the function typing type declarations and feed it Nonrecursive when the function is reused to type module constraints

Add the (now positive) example that was reported in #225.

Add, while we’re at it, what should be done to fix issue t6.

Closes #225

shym commented 1 year ago

Rebased and fixed.