Misleading error message, privacy error reported as type error #64684
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-visibility
Area: Visibility / privacy
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
(Playground)
Errors:
The error message here is incorrect. Whether the types match or not is irrelevant, because the field is private. The error should say something like this instead (playground):
The text was updated successfully, but these errors were encountered: