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