mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-20 00:41:05 +03:00
Better type propagation
This commit is contained in:
parent
6906fa48d1
commit
36a80b0ed3
@ -764,7 +764,10 @@ let rec scope_body_expr ctx env ty_out body_expr =
|
||||
A.ScopeLet
|
||||
{
|
||||
scope_let_kind;
|
||||
scope_let_typ = typ_to_ast (ty e);
|
||||
scope_let_typ =
|
||||
(match Marked.unmark scope_let_typ with
|
||||
| TAny -> typ_to_ast (ty e)
|
||||
| _ -> scope_let_typ);
|
||||
scope_let_expr;
|
||||
scope_let_next;
|
||||
scope_let_pos;
|
||||
|
Loading…
Reference in New Issue
Block a user