mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
fix bad test examples using unbound type alias variables
This commit is contained in:
parent
1ac66a8fee
commit
48f392f372
9 changed files with 162 additions and 41 deletions
|
@ -50,9 +50,9 @@ pub fn make_solved_types(
|
|||
let mut solved_types = MutMap::default();
|
||||
|
||||
for (symbol, alias) in solved_env.aliases.iter() {
|
||||
let mut args = Vec::with_capacity(alias.vars.len());
|
||||
let mut args = Vec::with_capacity(alias.type_variables.len());
|
||||
|
||||
for loc_named_var in alias.vars.iter() {
|
||||
for loc_named_var in alias.type_variables.iter() {
|
||||
let (name, var) = &loc_named_var.value;
|
||||
|
||||
args.push((name.clone(), SolvedType::new(&solved_subs, *var)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue