@semorrison this commit improves the bad error message you have reported at lean-user. It is not perfect since the user has to remember the position of the structure field in the constructor.
5 lines
79 B
Text
5 lines
79 B
Text
structure foo :=
|
|
(f: unit -> unit)
|
|
|
|
definition bar : foo :=
|
|
{ f := λ a b, _ }
|