mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
implement mono / lowering for tuples
This commit is contained in:
parent
65f8bb3d0d
commit
5a6be05ead
42 changed files with 1773 additions and 290 deletions
|
@ -2192,6 +2192,20 @@ fn list_one_vs_one_spread_issue_4685() {
|
|||
)
|
||||
}
|
||||
|
||||
#[mono_test]
|
||||
fn tuple_pattern_match() {
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
main = when (1, 2) is
|
||||
(1, _) -> "A"
|
||||
(_, 2) -> "B"
|
||||
(_, _) -> "C"
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test(mode = "test")]
|
||||
fn issue_4705() {
|
||||
indoc!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue