Fix 'implements' variable in types

This commit is contained in:
Joshua Warner 2024-12-15 16:32:03 -08:00
parent cc611533e0
commit d6d396b887
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 61 additions and 1 deletions

View file

@ -336,7 +336,11 @@ fn fmt_ty_ann(
}
TypeAnnotation::BoundVariable(v) => {
buf.indent(indent);
buf.push_str(v)
if *v == "implements" {
buf.push_str("(implements)");
} else {
buf.push_str(v);
}
}
TypeAnnotation::Wildcard => {
buf.indent(indent);