3831da8743
Change-Id: Ib9426243ae851bdf529f11d0d9b47c75679972fa Reviewed-on: https://dart-review.googlesource.com/74760 Commit-Queue: Peter von der Ahé <ahe@google.com> Reviewed-by: Aske Simon Christensen <askesc@google.com>
21 lines
578 B
Plaintext
21 lines
578 B
Plaintext
// Formatted problems:
|
|
//
|
|
// pkg/front_end/testcases/illegal_named_function_expression_scope.dart:7:14: Error: A function expression can't have a name.
|
|
// print(void f() {});
|
|
// ^
|
|
|
|
// Unhandled errors:
|
|
//
|
|
// pkg/front_end/testcases/illegal_named_function_expression_scope.dart:7:14: Error: A function expression can't have a name.
|
|
// print(void f() {});
|
|
// ^
|
|
|
|
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method main() → dynamic {
|
|
function f() → void {}
|
|
core::print(let final () → void f = () → dynamic {} in f);
|
|
}
|