dced5e0482
This cleans up the LocalScope interface and the handling of named function expressions. Change-Id: Id0432910a9e65d8ae966dfab67c66248639d241a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/419842 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
20 lines
555 B
Plaintext
20 lines
555 B
Plaintext
library;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/general/recursive_named_function_expression.dart:6:16: Error: A function expression can't have a name.
|
|
// var f = void foo() {
|
|
// ^^^
|
|
//
|
|
import self as self;
|
|
|
|
static method test() → void {
|
|
invalid-type f = block {
|
|
function foo() → void {
|
|
foo(){() → void};
|
|
}
|
|
} =>invalid-expression "pkg/front_end/testcases/general/recursive_named_function_expression.dart:6:11: Error: A function expression can't have a name.
|
|
var f = void foo() {
|
|
^";
|
|
}
|