lean4-htt/tests/lean/record_rec_protected.lean

8 lines
121 B
Text

--
structure point (A : Type) (B : Type) :=
mk :: (x : A) (y : B)
open point
check rec -- error, rec is protected