lean4-htt/tests/lean/run/1132.lean

24 lines
512 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 FooClass (α : Type) where
mkFoo : {m : Type → Type} → [Monad m] → α → m Nat
inductive Baz where | a | b
instance : FooClass Baz where
mkFoo := fun
| .a => return 0
| .b => return 1
instance : FooClass Baz where
mkFoo {m} _ := fun
| .a => return 0
| .b => return 1
instance : FooClass Baz where
mkFoo := fun a => match a with
| .a => return 0
| .b => return 1
instance : FooClass Baz where
mkFoo := @fun
| _, _, .a => return 1
| _, _, .b => return 2