mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
un-ignore some tests
This commit is contained in:
parent
b9069716f9
commit
e7099a1525
4 changed files with 73 additions and 104 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue