fix: anonymous constructor elaborator
This commit is contained in:
parent
0cda65057e
commit
d059d28c22
2 changed files with 2 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ fun stx expectedType? => match_syntax stx with
|
|||
| some expectedType => do
|
||||
expectedType ← instantiateMVars expectedType;
|
||||
let expectedType := expectedType.consumeMData;
|
||||
expectedType ← whnf expectedType;
|
||||
match expectedType.getAppFn with
|
||||
| Expr.const constName _ _ => do
|
||||
env ← getEnv;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ match x with
|
|||
def Vector (α : Type) (n : Nat) := { a : Array α // a.size = n }
|
||||
|
||||
def mkVec {α : Type} (n : Nat) (a : α) : Vector α n :=
|
||||
Subtype.mk (mkArray n a) rfl
|
||||
⟨mkArray n a, rfl⟩
|
||||
|
||||
structure S :=
|
||||
(n : Nat)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue