test: instances generated by class command

This commit is contained in:
Leonardo de Moura 2019-12-11 17:20:54 -08:00
parent acccfdfbd5
commit 2ae62fd3e8
2 changed files with 13 additions and 1 deletions

View file

@ -26,7 +26,7 @@ pure "hello"
#eval run "#check id $ Nat.succ one"
#eval run "#check HasAdd.add one two"
#eval run "#check one + two > one ∧ True"
-- #eval run "#check act1 >>= IO.println"
#eval run "#check act1 >>= IO.println"
#eval run
"universe u universe v

View file

@ -35,3 +35,15 @@ do inst ← mkAppM `HasCoerce #[mkConst `Nat, mkSort levelZero];
print r
#eval tst1
def tst2 : MetaM Unit :=
do inst ← mkAppM `HasBind #[mkConst `IO];
-- globalInstances ← getGlobalInstances;
-- print (format globalInstances);
-- result ← globalInstances.getUnify inst;
-- print result;
r ← synthInstance inst;
print r;
pure ()
#eval tst2