Idris2/tests/idris2/record010/record.idr

15 lines
257 B
Idris
Raw Normal View History

-- 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)