mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Support printing weak type variables in tests
Unbound type variables that are not at the generalization rank will now be printed as `w_a` in solve tests.
This commit is contained in:
parent
2b993a29f9
commit
3b0e2429e6
5 changed files with 49 additions and 24 deletions
|
@ -520,7 +520,7 @@ pub fn find_type_def_symbols(
|
|||
}
|
||||
|
||||
fn find_fresh_var_name(introduced_variables: &IntroducedVariables) -> Lowercase {
|
||||
name_type_var(0, &mut introduced_variables.iter_named(), |var, str| {
|
||||
name_type_var("", 0, &mut introduced_variables.iter_named(), |var, str| {
|
||||
var.name().as_str() == str
|
||||
})
|
||||
.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue