fix ordering bug in pattern exhaustiveness

This commit is contained in:
Folkert 2020-04-23 20:12:40 +02:00
parent f0aa598ff9
commit b2a713915b
3 changed files with 109 additions and 6 deletions

View file

@ -935,7 +935,7 @@ fn path_to_expr_help<'a>(
) -> (Expr<'a>, Layout<'a>) {
match path {
Path::Unbox(ref unboxed) => match **unboxed {
_ => todo!(),
_ => (Expr::Load(symbol), layout),
},
Path::Empty => (Expr::Load(symbol), layout),