Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Mathlib/Tactic/ToFun.lean
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def toFunImpl (src : Name) (stx : Syntax) (kind : AttributeKind) : AttrM Name :=
if name == src.appendBefore "fun_" then
logWarningAt id m!"`to_fun` correctly autogenerated the provided name `{.ofConstName name}`.\
\nYou may remove it."
MetaM.run' <| addRelatedDecl src name tk optAttr
MetaM.run' <| addRelatedDecl src name (id.elim tk (·.raw)) optAttr
(docstringPrefix? := s!"Eta-expanded form of `{src}`") (hoverInfo := true)
fun value levels => do
let type ← inferType value
Expand Down
Loading