mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
BROKEN
This commit is contained in:
parent
aac0e2d9f9
commit
27c3d57e35
18 changed files with 391 additions and 146 deletions
|
@ -59,8 +59,16 @@ pub fn make_solved_types(
|
|||
args.push((name.clone(), SolvedType::new(&solved_subs, *var)));
|
||||
}
|
||||
|
||||
let mut lambda_set_variables = Vec::with_capacity(alias.lambda_set_variables.len());
|
||||
for set in alias.lambda_set_variables.iter() {
|
||||
lambda_set_variables.push(roc_types::solved_types::SolvedLambdaSet(
|
||||
SolvedType::from_type(&solved_subs, &set.0),
|
||||
));
|
||||
}
|
||||
|
||||
let solved_type = SolvedType::from_type(&solved_subs, &alias.typ);
|
||||
let solved_alias = SolvedType::Alias(*symbol, args, Box::new(solved_type));
|
||||
let solved_alias =
|
||||
SolvedType::Alias(*symbol, args, lambda_set_variables, Box::new(solved_type));
|
||||
|
||||
solved_types.insert(*symbol, solved_alias);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue