Idris2/tests/idris2/linear/linear016/Issue2895.idr
2023-09-07 14:57:22 +01:00

18 lines
321 B
Idris

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))} ->
Id (proj c1 3) -> -- remove the Id works
Type
DepLensToDepOptic (MkId b') = ?hu