mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
treat wildcards as rigids
This commit is contained in:
parent
84c46b94e2
commit
9b0e14ef4c
2 changed files with 57 additions and 9 deletions
|
@ -155,8 +155,12 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
for (var, lowercase) in output.introduced_variables.name_by_var.clone() {
|
||||
rigid_variables.insert(var, lowercase);
|
||||
for (var, lowercase) in output.introduced_variables.name_by_var {
|
||||
rigid_variables.insert(var, lowercase.clone());
|
||||
}
|
||||
|
||||
for var in output.introduced_variables.wildcards {
|
||||
rigid_variables.insert(var, "*".into());
|
||||
}
|
||||
|
||||
let mut references = MutSet::default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue