fix: type-spec parsing bugs

This commit is contained in:
Shunsuke Shibayama 2023-05-02 22:46:37 +09:00
parent c84294fc11
commit 456201fb49
3 changed files with 20 additions and 2 deletions

View file

@ -3991,7 +3991,7 @@ pub struct TypeAscription {
impl NestedDisplay for TypeAscription {
fn fmt_nest(&self, f: &mut fmt::Formatter<'_>, _level: usize) -> fmt::Result {
writeln!(f, "{}{}", self.expr, self.t_spec)
writeln!(f, "{} {}", self.expr, self.t_spec)
}
}