Files
sdk/tests
Kallen Tu e59b0e6e9b [tests] Dot shorthands - Tests for using shorthands with inaccessible declarations.
As per https://github.com/dart-lang/language/issues/4606#issuecomment-3753427148,
it's a compile-time error to use a dot shorthand to access an
inaccessible private declaration (one in another library). Even when the context type is a type alias, this is not allowed.

Areas of tests covered:
- Same and different libraries.
- Classes, extension types, mixins, enums.
- Dot shorthand constructors, const constructors, invocations, property accesses.
- With type alias context type.

Bug: https://github.com/dart-lang/sdk/issues/62504
Change-Id: I9cd77cc4ee818006efddebdf05c38be7eb1d4045
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/475266
Commit-Queue: Kallen Tu <kallentu@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2026-01-26 13:29:31 -08:00
..

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/tree/main/docs/Testing.md.