mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
parse underscores in expressions
This commit is contained in:
parent
e1a78645aa
commit
28ba645121
7 changed files with 87 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue