fix: synthesize pending metavariables before expectedType.hasMVar test
This commit is contained in:
parent
299a89e2c0
commit
50a34bc1fe
1 changed files with 1 additions and 0 deletions
|
|
@ -162,6 +162,7 @@ if arg.isOfKind `Lean.Parser.Term.hole then
|
|||
match expectedType? with
|
||||
| none => throwError "invalid macro, expected type is not available"
|
||||
| some expectedType =>
|
||||
synthesizeSyntheticMVars
|
||||
let expectedType ← instantiateMVars expectedType
|
||||
if expectedType.hasFVar || expectedType.hasMVar then
|
||||
throwError! "expected type must not contain free or meta variables{indentExpr expectedType}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue