chore: reject private fields for now
See comment at `src/Lean/Structure.lean`
This commit is contained in:
parent
801acd3e62
commit
a703610347
1 changed files with 2 additions and 0 deletions
|
|
@ -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 ()
|
||||
|
||||
/-
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue