mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:27:17 +00:00
2cbed01634
Overriding fields can change the type to remove nullability and can also be final so they override the getters only. For DDC that means there is an inherited setter that could still be nullable and a forwarding setter that should allow null even though the type of the overriding field is non-nullable. With enhanced null safety asserts enabled in weak mode there should be no failure when setting the inherited field to null. Fixes: https://github.com/dart-lang/sdk/issues/50569 Change-Id: Ie6af0d1e265a5f3b15469311fa1f7e2a184d95ca Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/272480 Reviewed-by: Leaf Petersen <leafp@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Mark Zhou <markzipan@google.com> |
||
---|---|---|
.. | ||
parameter_checks_fields_and_setters_test.dart | ||
parameter_checks_opted_in.dart | ||
parameter_checks_test.dart |