fix: unregistered level metavariable
This commit is contained in:
parent
66a59d6379
commit
bdc9ea6fc6
1 changed files with 1 additions and 2 deletions
|
|
@ -75,8 +75,7 @@ match typeType with
|
|||
| Expr.mvar mvarId _ =>
|
||||
condM (isReadOnlyOrSyntheticOpaqueExprMVar mvarId)
|
||||
(throwEx $ Exception.typeExpected type)
|
||||
(do levelMVarId ← mkFreshId;
|
||||
let lvl := mkLevelMVar levelMVarId;
|
||||
(do lvl ← mkFreshLevelMVar;
|
||||
assignExprMVar mvarId (mkSort lvl);
|
||||
pure lvl)
|
||||
| _ => throwEx $ Exception.typeExpected type
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue