mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
report multiple expect failures
This commit is contained in:
parent
29a260a4b3
commit
93005cf2d0
3 changed files with 148 additions and 73 deletions
|
@ -23,7 +23,7 @@ pub fn get_values<'a>(
|
|||
start: *const u8,
|
||||
start_offset: usize,
|
||||
variables: &[Variable],
|
||||
) -> Result<Vec<Expr<'a>>, ToAstProblem> {
|
||||
) -> Result<(usize, Vec<Expr<'a>>), ToAstProblem> {
|
||||
let mut result = Vec::with_capacity(variables.len());
|
||||
|
||||
let memory = ExpectMemory {
|
||||
|
@ -70,7 +70,7 @@ pub fn get_values<'a>(
|
|||
result.push(expr);
|
||||
}
|
||||
|
||||
Ok(result)
|
||||
Ok((app.offset, result))
|
||||
}
|
||||
|
||||
struct ExpectMemory {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue