dart-sdk/tests/language/nnbd
Paul Berry 1b18e8f5ac Flow analysis: account for initializers of implicitly typed variables.
Previously, initializers of implicitly typed variables did not
contribute to the SSA tracking performed by flow analysis (see
https://github.com/dart-lang/language/issues/1785).  This change fixes
the bug, however the fix is conditioned on the "constructor tearoffs"
language feature to avoid compatibility issues (we don't want someone
to publish a package taking advantage of the fix, without realizing
that it makes their package unusable on older SDKs).

TEST=standard trybots
Bug: https://github.com/dart-lang/language/issues/1785
Change-Id: I1143440c7a9795b059e8f4b84e3f4125cd80732c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211306
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-08-27 15:01:15 +00:00
..
boolean_conversion [cfe] Special case Null in assignability errors. 2020-11-09 11:07:44 +00:00
const Add regression test for issue #43281 2020-09-03 00:38:52 +00:00
definite_assignment Fix test expectations in read_error_test 2020-10-01 00:38:25 +00:00
experiment_release_version [cfe] Special case Null in assignability errors. 2020-11-09 11:07:44 +00:00
extreme_bounds [Language] Enable null safety in Dart 2.12. 2020-10-29 18:25:56 +00:00
flow_analysis Flow analysis: account for initializers of implicitly typed variables. 2021-08-27 15:01:15 +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 Move errors from StaticWarningCode to CompileTimeErrorCode. 2020-07-26 04:19:25 +00:00
never [cfe] Special case Null in assignability errors. 2020-11-09 11:07:44 +00:00
normalization [tests/NNBD] Fix expectations in normalization test. 2020-06-17 15:51:39 +00:00
null_assertions [dart2js] Add --null-assertions flag 2020-07-30 22:13:04 +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 Rename mis-named NNBD language tests. 2021-05-28 01:12:07 +00:00
subtyping [dart2js] Evaluate implicit constants in scope visitor 2020-09-29 20:13:08 +00:00
syntax Rename mis-named NNBD language tests. 2021-05-28 01:12:07 +00:00
top_merge Fix top_merge tests. 2020-04-10 01:05:41 +00:00
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 Skip mixed-mode tests under language/nnbd in strong mode. 2020-05-21 17:34:43 +00:00
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 Remove (most) uses of the "non-nullable" experiment flag. 2021-02-12 17:16:54 +00:00