mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Add variable to ParamsVar
This commit is contained in:
parent
a14a110293
commit
7a8b9f7d6d
5 changed files with 37 additions and 24 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue