parse underscores in expressions

This commit is contained in:
Folkert 2021-04-11 21:02:31 +02:00
parent e1a78645aa
commit 28ba645121
7 changed files with 87 additions and 8 deletions

View file

@ -409,6 +409,10 @@ pub fn canonicalize_expr<'a>(
ast::Expr::Var { module_name, ident } => {
canonicalize_lookup(env, scope, module_name, ident, region)
}
ast::Expr::Underscore(_) => {
// we parse underscored, but they are not valid expression syntax
todo!("todo")
}
ast::Expr::Defs(loc_defs, loc_ret) => {
can_defs_with_return(
env,