chore: reject private fields for now

See comment at `src/Lean/Structure.lean`
This commit is contained in:
Leonardo de Moura 2020-07-21 15:12:12 -07:00
parent 801acd3e62
commit a703610347

View file

@ -93,6 +93,8 @@ when modifiers.isUnsafe $
throwError ref "invalid use of 'unsafe' in field declaration";
when (modifiers.attrs.size != 0) $
throwError ref "invalid use of attributes in field declaration";
when modifiers.isPrivate $
throwError ref "private fields are not supported yet";
pure ()
/-