dart-sdk/tests/language/nnbd
Johnni Winther 38d7c7661d [cfe] Special case Null in assignability errors.
In error reporting on assignability where the expression has type
`Null` we use a special messages that doesn't state that
"'Null' is nullable". Cases where `Null` is part of the type or where
the expression of type `Null` is derived from a collection are not
special cased.

Closes #43998
Closes #44093

Change-Id: Ic0c79e6362f2365eb3fe8222ccd2ef8fac4f188d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/170433
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-11-09 11:07:44 +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 [test] Update never_runtime_check_nnbd to match new expectations 2020-10-08 15:08:05 +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
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 Add a language test for #43397. 2020-09-21 19:32:12 +00:00
resolution [test_runner] Support detection of CFE warnings 2020-09-15 07:57:31 +00:00
static_errors Reland "Flow analysis: promote to non-nullable on initialization" 2020-10-07 13:14:55 +00:00
subtyping [dart2js] Evaluate implicit constants in scope visitor 2020-09-29 20:13:08 +00:00
syntax [cfe] Special case Null in assignability errors. 2020-11-09 11:07:44 +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 Flow analysis: rework handling of equality tests. 2020-08-14 12:16:36 +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 [cfe] Indicate nullability as assignability issue when appropriate 2020-10-29 16:10:03 +00:00