error parsing for def, alias and let

This commit is contained in:
Fernando Herrera
2021-09-10 08:28:43 +01:00
parent 56b3f119c0
commit 0794ebf5fa
3 changed files with 98 additions and 53 deletions

View File

@ -48,3 +48,15 @@ impl Block {
}
}
}
impl<T> From<T> for Block
where
T: Iterator<Item = Statement>,
{
fn from(stmts: T) -> Self {
Self {
signature: Box::new(Signature::new("")),
stmts: stmts.collect(),
}
}
}