mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
store lambda set in alias types
This commit is contained in:
parent
dad5d5de85
commit
4cefbec5c7
11 changed files with 223 additions and 103 deletions
|
@ -234,7 +234,12 @@ fn can_annotation_help(
|
|||
// instantiate variables
|
||||
actual.substitute(&substitutions);
|
||||
|
||||
Type::Alias(symbol, vars, Box::new(actual))
|
||||
Type::Alias {
|
||||
symbol,
|
||||
type_arguments: vars,
|
||||
lambda_set_variables: alias.lambda_set_variables.clone(),
|
||||
actual: Box::new(actual),
|
||||
}
|
||||
}
|
||||
None => {
|
||||
let mut args = Vec::new();
|
||||
|
@ -378,7 +383,12 @@ fn can_annotation_help(
|
|||
actual_var,
|
||||
}
|
||||
} else {
|
||||
Type::Alias(symbol, vars, Box::new(alias.typ.clone()))
|
||||
Type::Alias {
|
||||
symbol,
|
||||
type_arguments: vars,
|
||||
lambda_set_variables: alias.lambda_set_variables.clone(),
|
||||
actual: Box::new(alias.typ.clone()),
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue