From 0d2afe411154430341fb25c23df0353bc471d5dc Mon Sep 17 00:00:00 2001 From: Luke Boswell Date: Thu, 4 Apr 2024 13:48:42 +1100 Subject: [PATCH] use # in ident --- crates/compiler/can/src/desugar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compiler/can/src/desugar.rs b/crates/compiler/can/src/desugar.rs index 409b8f9108..03d827ddf6 100644 --- a/crates/compiler/can/src/desugar.rs +++ b/crates/compiler/can/src/desugar.rs @@ -454,7 +454,7 @@ fn desugar_if_node_suffixed<'a>(arena: &'a Bump, loc_expr: &'a Loc>) -> let count = SUFFIXED_IF_COUNTER.load(Ordering::SeqCst); // create a unique identifier for our answer - let answer_ident = arena.alloc(format!("ifAnswer{}", count)); + let answer_ident = arena.alloc(format!("#if!{}", count)); let pattern = Loc::at( current_if_then_statement.region, Pattern::Identifier {