Idris2/tests/idris2/linear016/Issue2895.idr

18 lines
321 B
Idris
Raw Normal View History

2023-02-25 15:19:29 +03:00
record Ty where
constructor MkTy
0 obj : Type
record TyProj (d: Ty) where
constructor MkTyProj
proj : d.obj
record Id (x : Type) where
constructor MkId
getId : x
DepLensToDepOptic :
{c1 : TyProj (MkTy (Nat -> Type))} ->
2023-02-25 21:40:21 +03:00
Id (proj c1 3) -> -- remove the Id works
2023-02-25 15:19:29 +03:00
Type
DepLensToDepOptic (MkId b') = ?hu