add snapshot test for suffixed expr

This commit is contained in:
Luke Boswell 2024-03-14 12:04:39 +11:00
parent 9bc0ab79af
commit 8bbbd768ec
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
11 changed files with 19 additions and 0 deletions

View file

@ -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),
}
}