fix: missing withDeclName
This commit is contained in:
parent
300fcc3321
commit
7dec568ef6
2 changed files with 2 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ private def elabHeaders (views : Array DefView) : TermElabM (Array DefViewElabHe
|
|||
let newHeader ← withRef view.ref do
|
||||
let ⟨shortDeclName, declName, levelNames⟩ ← expandDeclId (← getCurrNamespace) (← getLevelNames) view.declId view.modifiers
|
||||
applyAttributesAt declName view.modifiers.attrs AttributeApplicationTime.beforeElaboration
|
||||
withAutoBoundImplicitLocal <| withLevelNames levelNames <|
|
||||
withDeclName declName <| withAutoBoundImplicitLocal <| withLevelNames levelNames <|
|
||||
elabBinders (catchAutoBoundImplicit := true) view.binders.getArgs fun xs => do
|
||||
let refForElabFunType := view.value
|
||||
elabFunType refForElabFunType xs view fun xs type => do
|
||||
|
|
|
|||
1
tests/lean/run/missingDeclName.lean
Normal file
1
tests/lean/run/missingDeclName.lean
Normal file
|
|
@ -0,0 +1 @@
|
|||
def foo {α β : Type} (xs : Array (α × β)) (H : true = xs.all fun (x, y) => true) : Unit := ()
|
||||
Loading…
Add table
Reference in a new issue