Compare commits

...

1 Commits

Author SHA1 Message Date
Alex Waygood
598f05793e [ty] Does this make diagnostics go away on prefect? 2026-01-03 13:29:15 +00:00

View File

@@ -14112,6 +14112,9 @@ impl<'db> UnionType<'db> {
db: &'db dyn Db,
mut f: impl FnMut(&Type<'db>) -> bool,
) -> Type<'db> {
if self.elements(db).iter().all(|ty| f(ty)) {
return Type::Union(self);
}
self.elements(db)
.iter()
.filter(|ty| f(ty))