From b83a247ff7a752d16c9396c66ab772c99def2674 Mon Sep 17 00:00:00 2001 From: KtorZ Date: Sat, 11 Feb 2023 17:00:32 +0100 Subject: [PATCH] Add slightly more informative note for list pattern on int. --- crates/aiken-lang/src/uplc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/aiken-lang/src/uplc.rs b/crates/aiken-lang/src/uplc.rs index 1c72c5f2..0fd2dd02 100644 --- a/crates/aiken-lang/src/uplc.rs +++ b/crates/aiken-lang/src/uplc.rs @@ -1534,7 +1534,7 @@ impl<'a> CodeGenerator<'a> { Some(item_name) } Pattern::Assign { .. } => todo!("Nested assign is not yet done"), - Pattern::Int { .. } => unimplemented!(), + Pattern::Int { .. } => todo!("Nested pattern-match on integers isn't implemented yet. Use when clause-guard as an alternative, or break down the pattern."), } }