dart-sdk/tests/language/nnbd
Paul Berry e835ab692e Update language tests to prepare for enabling interface-update-2.
The tests `variable_property_not_promoted_test` and
`this_property_not_promoted_test` verify that fields are _not_
promoted. To prevent them from failing when we enable the language
feature `inference-update-2` (which provides field promotion), they
need `@dart=3.0` directives. This ensures that we will continue to
have coverage of the old (non-promoting) behavior after field
promotion is switched on.

Bug: https://github.com/dart-lang/language/issues/2020
Change-Id: I376da01dfe4223f17ae4863e4460b4f1a0708dc6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/314760
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2023-07-19 17:31:18 +00:00
..
boolean_conversion Spelling tools 2023-01-09 15:48:57 +00:00
const Add regression test for issue #43281 2020-09-03 00:38:52 +00:00
definite_assignment Remove extra the, be and of 2021-10-20 09:29:01 +00:00
experiment_release_version Spelling sdk 2023-01-20 12:37:49 +00:00
extreme_bounds [Language] Enable null safety in Dart 2.12. 2020-10-29 18:25:56 +00:00
flow_analysis Update language tests to prepare for enabling interface-update-2. 2023-07-19 17:31:18 +00:00
inference [cfe] Fix missing case of using receiver type instead of bound 2020-10-30 16:33:51 +00:00
is_type_test [ddc] Fix is type tests on nullable types 2020-07-27 23:32:18 +00:00
late Add language tests for some late instance variable corner cases. 2021-06-02 23:21:24 +00:00
mixed_inheritance pre-emptively fix some tests for class modifiers flag flip 2023-03-01 20:11:25 +00:00
never Spelling tests 2023-01-19 16:24:29 +00:00
normalization [ddc] Fix bug in FutureOr type normalization 2022-10-03 20:09:38 +00:00
null_assertions [ddc] Avoid null check on forwarding field setters 2022-11-29 21:49:15 +00:00
required_named_parameters [vm] Fix ArgumentsDescriptor uses in DoArgumentTypesMatch. 2020-11-16 11:53:39 +00:00
resolution analyzer: Improve span of use_of_nullable_value errors 2021-04-02 02:43:48 +00:00
static_errors [test] Fix expectation in language/nnbd/static_errors/non_null_assertion_test 2023-05-22 19:50:16 +00:00
subtyping Spelling tests 2023-01-19 16:24:29 +00:00
syntax [test] Do not run test with legacy library in sound null safe mode 2023-05-22 20:23:36 +00:00
top_merge
try_catch Move codes from StaticTypeWarningCode into CompileTimeErrorCode. 2020-07-27 16:44:15 +00:00
type_equality [ddc] Fix type parameters in tear offs 2020-06-10 23:49:43 +00:00
type_object
type_promotion analyzer: Improve span of use_of_nullable_value errors 2021-04-02 02:43:48 +00:00
typedef [cfe] Special case Null in assignability errors. 2020-11-09 11:07:44 +00:00
constant_null_safety_mode_test.dart Rename is{Strong,Weak}Mode to has{Sound,Unsound}NullSafety 2020-11-05 14:26:53 +00:00
operator_type_test.dart Spelling tests 2023-01-19 16:24:29 +00:00