dab228e55f
Change-Id: Id38f5e7495c245e5a7b161b55c58b8826c146a80 Reviewed-on: https://dart-review.googlesource.com/c/90000 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Peter von der Ahé <ahe@google.com>
21 lines
855 B
Plaintext
21 lines
855 B
Plaintext
library;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// 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) {});
|
|
// ^
|
|
//
|
|
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);
|
|
}
|