lean4-htt/tests/lean/diamond5.lean
2021-08-11 17:25:02 -07:00

17 lines
305 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.

class A (α : Type) where
one : α
zero : α
class B (α : Type) extends A α where
add : ααα
class C (α : Type) extends A α where
mul : ααα
set_option structureDiamondWarning false
def D.toC (x : Nat) := x
class D (α : Type) extends B α, C α
#check @D.toC_1