blob: f2605ca7fd28a07815b2cb3fdf7002e506917aa6 [file] [log] [blame]
// Errors:
//
// pkg/front_end/testcases/illegal_named_function_expression.dart:6:16: Error: A function expression can't have a name.
// var x = void f<T>(T t) {};
// ^
//
// pkg/front_end/testcases/illegal_named_function_expression.dart:8:14: Error: A function expression can't have a name.
// print(void g<T>(T t) {});
// ^
library;
import self as self;
import "dart:core" as core;
static method main() dynamic {
dynamic x = let final <T extends core::Object = dynamic>(T) void f = <T extends core::Object = dynamic>(T t) dynamic {} in f;
core::print(x.runtimeType);
core::print(let final <T extends core::Object = dynamic>(T) void g = <T extends core::Object = dynamic>(T t) dynamic {} in g);
}