un-ignore some tests

This commit is contained in:
Folkert 2021-03-18 16:02:22 +01:00
parent b9069716f9
commit e7099a1525
4 changed files with 73 additions and 104 deletions

View file

@ -480,6 +480,8 @@ fn to_expr_report<'a>(
}
}
EExpr::Space(error, row, col) => to_space_report(alloc, filename, &error, *row, *col),
_ => todo!("unhandled parse error: {:?}", parse_problem),
}
}
@ -1821,6 +1823,22 @@ fn to_type_report<'a>(
}
}
Type::TBadTypeVariable(row, col) => {
let surroundings = Region::from_rows_cols(start_row, start_col, *row, *col);
let region = Region::from_row_col(*row, *col);
let doc = alloc.stack(vec![
alloc.reflow(r"I am expecting a type variable, but I got stuck here:"),
alloc.region_with_subregion(surroundings, region),
]);
Report {
filename,
doc,
title: "BAD TYPE VARIABLE".to_string(),
}
}
_ => todo!("unhandled type parse error: {:?}", &parse_problem),
}
}