Skip to main content

luaur_analysis/methods/
subtyping_result_with_errors.rs

1use crate::records::subtyping_result::SubtypingResult;
2use crate::type_aliases::error_vec::ErrorVec;
3
4impl SubtypingResult {
5    pub fn with_errors(&mut self, err: &mut ErrorVec) -> &mut Self {
6        for e in err.iter() {
7            self.with_error(e.clone());
8        }
9        self
10    }
11}