mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
67e36dcf42
Added a new type safety invariant to ensure that the type `TDefault` can only appear in certain positions, * On the left-hand side of an arrow with arity 1, as the type of a scope (for scope calls). * At the root of the type tree (outside a default). * On the right-hand side of the arrow at the root of the type (occurs for rentrant variables). This is crucial to maintain the safety of the type system, as demonstrated in the formal development. The invariant was checked on all tests cases and on family and housing benefits. Adjusted inversion invariant about app to handle external objects as well. |
||
---|---|---|
.. | ||
ast.ml | ||
ast.mli | ||
dcalc.mld | ||
dune | ||
from_scopelang.ml | ||
from_scopelang.mli | ||
invariants.ml | ||
invariants.mli |