Index: pkg/front_end/testcases/illegal_named_function_expression_scope.dart.direct.expect |
diff --git a/pkg/front_end/testcases/illegal_named_function_expression_scope.dart.direct.expect b/pkg/front_end/testcases/illegal_named_function_expression_scope.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7339408d466f3be936a85ad60f858f9ce1b6c98f |
--- /dev/null |
+++ b/pkg/front_end/testcases/illegal_named_function_expression_scope.dart.direct.expect |
@@ -0,0 +1,9 @@ |
+library; |
+import self as self; |
+import "dart:core" as core; |
+ |
+const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/illegal_named_function_expression_scope.dart:7:9: Error: A function expression can't have a return type.\n print(void f() {});\n ^", "pkg/front_end/testcases/illegal_named_function_expression_scope.dart:7:14: Error: A function expression can't have a name.\n print(void f() {});\n ^"]/* from null */; |
+static method main() → dynamic { |
+ function f() → void {} |
+ core::print(let final () → void f = () → void {} in f); |
+} |