Diagnose private fields in record constructor

This commit is contained in:
Lukas Wirth 2023-09-08 23:19:30 +02:00
parent c405509f2e
commit 55c75450fb
6 changed files with 84 additions and 27 deletions

View file

@ -195,6 +195,7 @@ pub(crate) type InferResult<T> = Result<InferOk<T>, TypeError>;
pub enum InferenceDiagnostic {
NoSuchField {
expr: ExprId,
private: bool,
},
PrivateField {
expr: ExprId,