Skip to main content

luaur_analysis/methods/
subtyping_result_with_error.rs

1use crate::records::subtyping_result::SubtypingResult;
2use crate::records::type_error::TypeError;
3
4impl SubtypingResult {
5    pub fn with_error(&mut self, err: TypeError) -> &mut Self {
6        self.errors.push(err);
7        self
8    }
9}