Merge branch 'main' into block_param_types

This commit is contained in:
JT
2021-09-13 19:59:18 +12:00
5 changed files with 218 additions and 55 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(),
}
}
}