lean4-htt/tests/lean/run/struct2.lean
Leonardo de Moura 732dfed8b5 fix: id marker for auxiliary _default declarations
The "marker" is used to delimit parameters and the actual default
value (see new test).
2020-07-24 15:59:45 -07:00

16 lines
244 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

new_frontend
universe u
structure A (α : Type u) :=
(f : (β : Type u) → α → β → α)
set_option pp.all true
structure B (α : Type u) extends A α :=
(x : Nat)
(f := fun β a b => a)
#check B.f._default
#check { x := 10 : B Nat}