chore: fix test
This commit is contained in:
parent
8b0a100e21
commit
a670de93cd
1 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ partial def mkPattern : Expr → MetaM Pattern
|
|||
ps ← ps.toList.mapM mkPattern;
|
||||
pure $ Pattern.arrayLit type ps
|
||||
else match e.arrayLit? with
|
||||
| some es => do
|
||||
| some (_, es) => do
|
||||
pats ← es.mapM mkPattern;
|
||||
type ← inferType e;
|
||||
type ← whnfD type;
|
||||
|
|
@ -99,7 +99,7 @@ partial def decodeAltLHS (e : Expr) : MetaM AltLHS :=
|
|||
forallTelescopeReducing e fun args body => do
|
||||
decls ← args.toList.mapM (fun arg => getLocalDecl arg.fvarId!);
|
||||
pats ← decodePats body;
|
||||
pure { fvarDecls := decls, patterns := pats }
|
||||
pure { localDecls := decls, patterns := pats }
|
||||
|
||||
partial def decodeAltLHSs : Expr → MetaM (List AltLHS)
|
||||
| e =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue