mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Go back to Apply being Vec<Var>
This commit is contained in:
parent
7e5d903e9e
commit
2bae47638a
5 changed files with 9 additions and 12 deletions
|
@ -94,13 +94,9 @@ fn type_to_variable(subs: &mut Subs, typ: Type) -> Variable {
|
|||
match typ {
|
||||
Variable(var) => var,
|
||||
Apply(module_name, name, arg_types) => {
|
||||
let args: Vec<Content> =
|
||||
let args: Vec<Variable> =
|
||||
arg_types.into_iter()
|
||||
.map(|arg| {
|
||||
let var = type_to_variable(subs, arg);
|
||||
|
||||
subs.get(var).content
|
||||
})
|
||||
.map(|arg| type_to_variable(subs, arg))
|
||||
.collect();
|
||||
|
||||
let flat_type = FlatType::Apply(module_name, name, args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue