add include support

This commit is contained in:
2022-02-24 22:30:34 +01:00
parent 71de622634
commit b41b7f250c
4 changed files with 63 additions and 13 deletions

View File

@@ -357,7 +357,7 @@ fn type_mismatch(
Err(())
}
fn report_error(msg: &str, span: &Span, sources: &Sources) -> Result<()> {
pub fn report_error(msg: &str, span: &Span, sources: &Sources) -> Result<()> {
Report::build(ReportKind::Error, span.0, span.1.start)
.with_message(msg)
.with_label(