c191551fac
TEST=Covered by existing tests. Change-Id: Ied8be1874164e68e0a3a48e1b2f9a33310071381 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183009 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
23 lines
1.0 KiB
Plaintext
23 lines
1.0 KiB
Plaintext
library /*isNonNullableByDefault*/;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>' because 'List<dynamic>?' is nullable and 'List<dynamic>' isn't.
|
|
// - 'List' is from 'dart:core'.
|
|
// List y = await l(); // should be a List?
|
|
// ^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
import "dart:async" as asy;
|
|
|
|
static method test() → dynamic async {
|
|
core::List<dynamic> y = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List<dynamic>?' can't be assigned to a variable of type 'List<dynamic>' because 'List<dynamic>?' is nullable and 'List<dynamic>' isn't.
|
|
- 'List' is from 'dart:core'.
|
|
List y = await l(); // should be a List?
|
|
^" in await self::l() as{TypeError,ForNonNullableByDefault} core::List<dynamic>;
|
|
}
|
|
static method l() → asy::Future<core::List<dynamic>>?
|
|
return null;
|
|
static method main() → dynamic {}
|