mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Weaken expect/dbg behind let bindings
This commit is contained in:
parent
354765afca
commit
20b4f290ce
1 changed files with 3 additions and 3 deletions
|
@ -3845,6 +3845,9 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
|
|||
| Crash { .. }
|
||||
| Access { .. }
|
||||
| Update { .. }
|
||||
| Expect { .. }
|
||||
| ExpectFx { .. }
|
||||
| Dbg { .. }
|
||||
=> {
|
||||
return false
|
||||
}
|
||||
|
@ -3853,9 +3856,6 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
|
|||
| AbilityMember(_, _, _)
|
||||
| Tag { .. }
|
||||
| ZeroArgumentTag { .. }
|
||||
| Expect { .. }
|
||||
| ExpectFx { .. }
|
||||
| Dbg { .. }
|
||||
| TypedHole(_)
|
||||
| RuntimeError(_) => return true,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue