blob: c92373620d2cf920d18ae16893addc777ef1dcfd [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart:4:3: Error: 'yield' can only be used in 'sync*' or 'async*' methods.
// yield f();
// ^^^^^
//
// pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart:3:11: Error: A non-null value must be returned since the return type 'List<int>' doesn't allow null.
// - 'List' is from 'dart:core'.
// List<int> g() {
// ^
//
import self as self;
import "dart:async" as asy;
import "dart:core" as core;
static method f() asy::Future<core::int>
return asy::Future::value<core::int>(7);
static method g() core::List<core::int> {
invalid-expression "pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart:4:3: Error: 'yield' can only be used in 'sync*' or 'async*' methods.
yield f();
^";
return invalid-expression "pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart:3:11: Error: A non-null value must be returned since the return type 'List<int>' doesn't allow null.
- 'List' is from 'dart:core'.
List<int> g() {
^" in null;
}