Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: pkg/front_end/testcases/regress/issue_29978.dart.strong.expect

Issue 2993883002: Implement type inference for named function expressions. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/regress/issue_29978.dart.strong.expect
diff --git a/pkg/front_end/testcases/regress/issue_29978.dart.strong.expect b/pkg/front_end/testcases/regress/issue_29978.dart.strong.expect
index 6289276b0d0a2f841d5e5ca723453dbce147b0f0..367cf1902fd06d05a5c8d5b3259dba10fff00959 100644
--- a/pkg/front_end/testcases/regress/issue_29978.dart.strong.expect
+++ b/pkg/front_end/testcases/regress/issue_29978.dart.strong.expect
@@ -1,9 +1,10 @@
library;
import self as self;
+import "dart:core" as core;
const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/regress/issue_29978.dart:8:13: Error: A function expression can't have a name.\n foo(null, f() {});\n ^"]/* from null */;
static method foo(dynamic a, dynamic b) → dynamic
return null;
static method main() → dynamic {
- self::foo(null, let final dynamic f = () → dynamic {} in f);
+ self::foo(null, let final () → core::Null f = () → core::Null {} in f);
}

Powered by Google App Engine
This is Rietveld 408576698