feat: postpone only if inferred type is unknown and there are arguments
This commit is contained in:
parent
7cd0e0a7a5
commit
e35f79feb5
1 changed files with 2 additions and 1 deletions
|
|
@ -271,7 +271,8 @@ private def elabAppArgs (ref : Syntax) (f : Expr) (namedArgs : Array NamedArg) (
|
|||
fType ← inferType ref f;
|
||||
fType ← instantiateMVars ref fType;
|
||||
trace `Elab.app.args ref $ fun _ => "explicit: " ++ toString explicit ++ ", " ++ f ++ " : " ++ fType;
|
||||
tryPostponeIfMVar fType;
|
||||
unless (namedArgs.isEmpty && args.isEmpty) $
|
||||
tryPostponeIfMVar fType;
|
||||
elabAppArgsAux {ref := ref, args := args, expectedType? := expectedType?, explicit := explicit, namedArgs := namedArgs } f fType
|
||||
|
||||
/-- Auxiliary inductive datatype that represents the resolution of an `LVal`. -/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue