Format spaces in as annotation correctly

This commit is contained in:
Joshua Warner 2024-12-14 15:31:21 -08:00
parent 24ba9dbeba
commit 9f3f99c573
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 73 additions and 3 deletions

View file

@ -575,6 +575,7 @@ mod test_snapshots {
pass/parens_func_apply_type.expr,
pass/parens_in_type_def_apply.expr,
pass/parens_newline_in_func_type.expr,
pass/parens_newlines_before_as.expr,
pass/parens_record_updater.expr,
pass/parenthesized_type_def.expr,
pass/parenthesized_type_def_space_before.expr,
@ -744,6 +745,13 @@ mod test_snapshots {
true
}
"parens_newlines_before_as" => {
// Found unbound type variables {66}
// in type alias `Test.IdentId(0)` [] [] : <66>
// Location: crates/compiler/can/src/scope.rs:541:13
true
}
// When adding new snapshot tests, strongly prefer fixing any canonicalization panics
// they may run into rather than adding them to this list.
_ => false,