blob: a7bd5010badbbe6d34523c71ca348fc8c93a1fa5 [file] [log] [blame]
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 /* futureValueType= dynamic */ {
core::List<dynamic> y = 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();
}
static method l() asy::Future<core::List<dynamic>>?
return null;
static method main() dynamic {}