mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Fix compile error
This commit is contained in:
parent
435781aa5b
commit
935a484c71
2 changed files with 10 additions and 2 deletions
|
@ -255,8 +255,15 @@ mod solve_expr {
|
||||||
let can_problems = can_problems.remove(&home).unwrap_or_default();
|
let can_problems = can_problems.remove(&home).unwrap_or_default();
|
||||||
let type_problems = type_problems.remove(&home).unwrap_or_default();
|
let type_problems = type_problems.remove(&home).unwrap_or_default();
|
||||||
|
|
||||||
assert_eq!(can_problems, Vec::new(), "Canonicalization problems: ");
|
let (can_problems, type_problems) =
|
||||||
assert_eq!(type_problems, Vec::new(), "Type problems: ");
|
format_problems(&src, home, &interns, can_problems, type_problems);
|
||||||
|
|
||||||
|
assert!(
|
||||||
|
can_problems.is_empty(),
|
||||||
|
"Canonicalization problems: {}",
|
||||||
|
can_problems
|
||||||
|
);
|
||||||
|
assert!(type_problems.is_empty(), "Type problems: {}", type_problems);
|
||||||
|
|
||||||
let queries = parse_queries(&src);
|
let queries = parse_queries(&src);
|
||||||
assert!(!queries.is_empty(), "No queries provided!");
|
assert!(!queries.is_empty(), "No queries provided!");
|
||||||
|
|
|
@ -10012,6 +10012,7 @@ I need all branches in an `if` to have the same type!
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
fn branches_have_more_cases_than_condition() {
|
fn branches_have_more_cases_than_condition() {
|
||||||
new_report_problem_as(
|
new_report_problem_as(
|
||||||
indoc!(
|
indoc!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue