Idris2-boot/tests/idris2/basic016/Eta.idr

15 lines
310 B
Idris
Raw Normal View History

2019-06-28 14:43:55 +03:00
data Test : Type where
MkTest : Integer -> Integer -> Test
etaGood1 : MkTest = (\x => \y => MkTest ? ?)
etaGood1 = Refl
etaGood2: (MkTest 1) = (\x => MkTest ? x)
etaGood2 = Refl
etaGood3: (f : a -> b) -> f = (\x => f x)
etaGood3 f = Refl
etaBad : MkTest = (\x : Nat => \y => MkTest ? ?)
etaBad = Refl