blob: 0ecf03e2161fc658868086408c1901db29f7a040 [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 let final<BottomType> #t1 = 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;
}