chore: add test

This commit is contained in:
Gabriel Ebner 2022-09-12 15:44:16 +02:00 committed by Leonardo de Moura
parent ca28b0462c
commit d67546e388
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,9 @@
def Mine := Id
class MyMonad (m) extends Monad m where
bind_eq_bind : @bind = @bind := by trivial
instance : MyMonad Mine where
-- should show me all the fields I need to fill in
-- excluding default and auto-param fields
-- i.e., only `pure` and `bind`

View file

@ -0,0 +1 @@
instance1.lean:6:24-6:29: error: fields missing: 'pure', 'bind'