Add variable to ParamsVar

This commit is contained in:
Agus Zubiaga 2024-07-04 16:59:47 -03:00
parent a14a110293
commit 7a8b9f7d6d
No known key found for this signature in database
5 changed files with 37 additions and 24 deletions

View file

@ -569,8 +569,8 @@ pub fn constrain_expr(
Var(symbol, variable)
| ParamsVar {
symbol,
params: _,
var: variable,
..
} => {
// Save the expectation in the variable, then lookup the symbol's type in the environment
let expected_type = *constraints[expected].get_type_ref();