dart-sdk/tests/language/nnbd/null_assertions
Nicholas Shahan 2cbed01634 [ddc] Avoid null check on forwarding field setters
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>
2022-11-29 21:49:15 +00:00
..
parameter_checks_fields_and_setters_test.dart [ddc] Avoid null check on forwarding field setters 2022-11-29 21:49:15 +00:00
parameter_checks_opted_in.dart [ddc] Avoid null check on forwarding field setters 2022-11-29 21:49:15 +00:00
parameter_checks_test.dart [dart2js] Add --null-assertions flag 2020-07-30 22:13:04 +00:00