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>
16 lines
399 B
Plaintext
16 lines
399 B
Plaintext
library;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/illegal_named_function_expression_scope.dart:7:14: Error: A function expression can't have a name.
|
|
// print(void f() {});
|
|
// ^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method main() → dynamic {
|
|
function f() → void {}
|
|
core::print(let final () → core::Null f = () → core::Null {} in f);
|
|
}
|