nicer errors

This commit is contained in:
Mark
2024-06-21 15:50:41 +02:00
parent b11e4017ed
commit 688e28c171
13 changed files with 833 additions and 397 deletions

View File

@@ -352,11 +352,7 @@ impl Type {
pub fn iterable(&self) -> Option<Type> {
let mut o = Self::empty();
for t in self.types.iter() {
if let Some(t) = t.iterable() {
o.add_all(&t);
} else {
return None;
}
o.add_all(&t.iterable()?);
}
Some(o)
}