mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
implement layout for Tag
This commit is contained in:
parent
8c7124aba6
commit
d875f8bfce
5 changed files with 28 additions and 11 deletions
|
@ -124,7 +124,9 @@ fn flatten_patterns<'a>(branch: Branch<'a>) -> Branch<'a> {
|
|||
|
||||
fn flatten<'a>(path_pattern: (Path, Pattern<'a>), path_patterns: &mut Vec<(Path, Pattern<'a>)>) {
|
||||
match &path_pattern.1 {
|
||||
Pattern::AppliedTag { union, .. } => {
|
||||
Pattern::AppliedTag {
|
||||
union, arguments, ..
|
||||
} => {
|
||||
if union.alternatives.len() == 1 {
|
||||
// case map dearg ctorArgs of
|
||||
// [arg] ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue