mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 19:59:07 +00:00
fix: type-spec parsing bugs
This commit is contained in:
parent
c84294fc11
commit
456201fb49
3 changed files with 20 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue