lean4-htt/tests/lean/run/968.lean
Leonardo de Moura f00e6c0a96 feat(frontends/lean): anonymous instances
The instance name is synthesized automatically.
2016-09-23 13:34:34 -07:00

15 lines
212 B
Text

variables (A : Type) [inhabited A]
definition f (a : A) : A := a
check @f nat nat.inhabited
structure foo :=
(a : A)
check @foo nat nat.inhabited
inductive bla
| mk : A → bla
check @bla nat nat.inhabited