lean2/tests/lean/record_rec_protected.lean

8 lines
141 B
Text

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