pattern match on single-tag tag unions

in LLVM and crane
This commit is contained in:
Folkert 2020-03-17 19:44:59 +01:00
parent b5abed5f54
commit 6253d2d1af
4 changed files with 60 additions and 7 deletions

View file

@ -910,7 +910,7 @@ fn store_pattern2<'a>(
match argument {
Identifier(symbol) => {
// store immediately in the given symbol
stored.push((*symbol, layout.clone(), load));
stored.push((*symbol, arg_layout.clone(), load));
}
Underscore => {
// ignore