blob: 2fa75480cea05dd67b7904b9e2962cc69e9d8189 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general_nnbd_opt_out/await_in_non_async.dart:13:3: Error: 'await' can only be used in 'async' or 'async*' methods.
// await foo();
// ^^^^^
//
import self as self;
static method main() dynamic {
self::foo();
}
static method foo() dynamic {
invalid-expression "pkg/front_end/testcases/general_nnbd_opt_out/await_in_non_async.dart:13:3: Error: 'await' can only be used in 'async' or 'async*' methods.
await foo();
^^^^^";
}