mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-15 08:15:07 +00:00
add snapshot test for suffixed expr
This commit is contained in:
parent
9bc0ab79af
commit
8bbbd768ec
11 changed files with 19 additions and 0 deletions
|
@ -1957,6 +1957,7 @@ fn expr_to_pattern_help<'a>(arena: &'a Bump, expr: &Expr<'a>) -> Result<Pattern<
|
|||
Expr::Str(string) => Pattern::StrLiteral(string),
|
||||
Expr::SingleQuote(string) => Pattern::SingleQuote(string),
|
||||
Expr::MalformedIdent(string, problem) => Pattern::MalformedIdent(string, problem),
|
||||
Expr::Suffixed(_) => todo!(),
|
||||
};
|
||||
|
||||
// Now we re-add the spaces
|
||||
|
@ -3009,6 +3010,7 @@ where
|
|||
Err((NoProgress, to_error("->", state.pos())))
|
||||
}
|
||||
"<-" => good!(BinOp::Backpassing, 2),
|
||||
"!" => Err((NoProgress, to_error("!", state.pos()))),
|
||||
_ => bad_made_progress!(chomped),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue