lean2/tests/lean/record_rec_protected.lean

9 lines
141 B
Text
Raw Permalink Normal View History

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