Files
carbon-lang/toolchain/check/testdata/class
Nicholas BishopandDavid Blaikie 9fa7bd5bb8 Fix access to private members from within friended scopes (#8075)
In `LookupQualifiedName`, use `GetHighestAllowedAccess` to check whether
a scope allows access to its private members from the accessing scope
(e.g. due to friendship).

The `is_parent_access` param is removed from `IsAccessProhibited`; the
`access_info->highest_allowed_scope` field now accounts for parent
access.

Also update `GetHighestAllowedAccess` so that it works for
`ParameterizedClassType` in addition to `ClassType`.

---------

Co-authored-by: David Blaikie <dblaikie@gmail.com>
2026-11-24 02:24:42 +00:00
..