Idris2/tests/idris2/record010/record.idr
2021-10-26 17:15:29 +01:00

15 lines
257 B
Idris

-- This test ensures that implicits bound on the RHS of a
-- record update field are correctly bound by the compiler.
record Rec where
n : Nat
data T : Rec -> Type where
C : T ({ n := Z } r)
data U : Rec -> Type where
D : U ({ n $= S } r)