mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
simpify pattern match on non-indexable values
This commit is contained in:
parent
4bbaa007f3
commit
7a36c25848
2 changed files with 10 additions and 11 deletions
|
@ -1057,9 +1057,9 @@ fn path_to_expr_help<'a>(
|
|||
wrapped: Wrapped::SingleElementRecord,
|
||||
};
|
||||
|
||||
symbol = env.unique_symbol();
|
||||
let inner_layout = layout;
|
||||
stores.push((symbol, inner_layout, inner_expr));
|
||||
// symbol = env.unique_symbol();
|
||||
// let inner_layout = layout;
|
||||
// stores.push((symbol, inner_layout, inner_expr));
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -14,10 +14,9 @@ procedure Test.1 (Test.6):
|
|||
ret Test.10;
|
||||
|
||||
procedure Test.1 (Test.6):
|
||||
let Test.36 = Index 0 Test.6;
|
||||
let Test.37 = false;
|
||||
let Test.38 = lowlevel Eq Test.37 Test.36;
|
||||
if Test.38 then
|
||||
let Test.36 = false;
|
||||
let Test.37 = lowlevel Eq Test.36 Test.6;
|
||||
if Test.37 then
|
||||
let Test.8 = 3i64;
|
||||
ret Test.8;
|
||||
else
|
||||
|
@ -25,10 +24,10 @@ procedure Test.1 (Test.6):
|
|||
ret Test.10;
|
||||
|
||||
procedure Test.0 ():
|
||||
let Test.41 = true;
|
||||
let Test.5 = CallByName Test.1 Test.41;
|
||||
let Test.39 = false;
|
||||
let Test.3 = CallByName Test.1 Test.39;
|
||||
let Test.40 = true;
|
||||
let Test.5 = CallByName Test.1 Test.40;
|
||||
let Test.38 = false;
|
||||
let Test.3 = CallByName Test.1 Test.38;
|
||||
let Test.31 = 11i64;
|
||||
let Test.32 = true;
|
||||
let Test.30 = Struct {Test.31, Test.32};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue