mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Update region when desugaring ! in Task mode
This commit is contained in:
parent
46e808dc3a
commit
a0f4b38ee9
23 changed files with 115 additions and 115 deletions
|
@ -421,7 +421,7 @@ pub fn desugar_expr<'a>(
|
|||
Var { module_name, ident } => {
|
||||
if env.fx_mode == FxMode::Task && ident.ends_with('!') {
|
||||
env.arena.alloc(Loc::at(
|
||||
loc_expr.region,
|
||||
Region::new(loc_expr.region.start(), loc_expr.region.end().sub(1)),
|
||||
TrySuffix {
|
||||
expr: env.arena.alloc(Var {
|
||||
module_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue