blob: e76b3438a5aa952a7926f72946f41c1fbeec898d [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/regress/issue_34850.dart:5:1: Error: Expected a declaration, but got '<'.
// <foo<
// ^
//
// pkg/front_end/testcases/regress/issue_34850.dart:7:1: Error: Expected '>' after this.
// int f1() {
// ^^^
//
// pkg/front_end/testcases/regress/issue_34850.dart:12:8: Error: Expected '>' after this.
// Future<List<int>> f2() async => null;
// ^^^^
//
// pkg/front_end/testcases/regress/issue_34850.dart:12:1: Error: A function declaration needs an explicit list of parameters.
// Try adding a parameter list to the function declaration.
// Future<List<int>> f2() async => null;
// ^^^^^^
//
// pkg/front_end/testcases/regress/issue_34850.dart:12:19: Error: Expected '{' before this.
// Future<List<int>> f2() async => null;
// ^^
//
// pkg/front_end/testcases/regress/issue_34850.dart:14:13: Error: Expected a type, but got '>>'.
// Future<List<>> f3() async {
// ^^
//
// pkg/front_end/testcases/regress/issue_34850.dart:5:2: Error: Type 'foo' not found.
// <foo<
// ^^^
//
// pkg/front_end/testcases/regress/issue_34850.dart:11:1: Error: Type 'foo' not found.
// foo
// ^^^
//
// pkg/front_end/testcases/regress/issue_34850.dart:14:1: Error: 'Future' isn't a type.
// Future<List<>> f3() async {
// ^^^^^^
// pkg/front_end/testcases/regress/issue_34850.dart:12:1: Context: This isn't a type.
// Future<List<int>> f2() async => null;
// ^^^^^^
//
import self as self;
import "dart:core" as core;
static method f1() invalid-type
;
static method Future<List extends core::Object? = dynamic>() invalid-type
;
static method f2() dynamic async
;
static method f3() invalid-type async
;
static method main() dynamic async
;