-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
NNBDIssues related to NNBD ReleaseIssues related to NNBD Releaselegacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
The following code produces a compile error in analyzer and only runtime error in VM
main() {
List? x2;
Set? x3;
Iterable? x4;
Set res;
res = {...x2}; // Analyzer error - An expression whose value can be 'null' must be null-checked before it can be dereferenced.
res = {...x2}; // Analyzer error - An expression whose value can be 'null' must be null-checked before it can be dereferenced.
res = {...x2}; // Analyzer error - An expression whose value can be 'null' must be null-checked before it can be dereferenced.
}There must be compile error in CFE as well
Dart SDK version: 2.10.0-110.0.dev (dev) (Wed Sep 9 17:51:43 2020 -0700) on "windows_x64"
Metadata
Metadata
Assignees
Labels
NNBDIssues related to NNBD ReleaseIssues related to NNBD Releaselegacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)