[SR-5324] Better diagnostic when instance member of outer type is referenced from nested type #47898
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
improvement
Additional Detail from JIRA
md5: 89ed2369cd8bd72c149a19b747b77277
Issue Description:
If you attempt something like this:
then you get a somewhat confusing error message:
since the member isn't really being used on the outer type, but on an instance of the inner type. A specialized diagnostic that said "instance member 'outer' of type 'Outer' cannot be accessed on instance of nested type 'Outer.Inner'" would be easier to understand.

The text was updated successfully, but these errors were encountered: