mirror of
https://github.com/Dummi26/mers.git
synced 2026-03-04 08:36:33 +01:00
nicer errors
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user