Add slightly more informative note for list pattern on int.

This commit is contained in:
KtorZ 2023-02-11 17:00:32 +01:00
parent 2e8fd6e1c2
commit b83a247ff7
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 1 additions and 1 deletions

View File

@ -1534,7 +1534,7 @@ impl<'a> CodeGenerator<'a> {
Some(item_name) Some(item_name)
} }
Pattern::Assign { .. } => todo!("Nested assign is not yet done"), 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."),
} }
} }