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

Side by Side Diff: pkg/front_end/testcases/illegal_named_function_expression.dart.direct.expect

Issue 2994973002: Implement type variables on local function declarations and expressions. (Closed)
Patch Set: Update expectation files after adding copyright. 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 unified diff | Download patch
OLDNEW
(Empty)
1 library;
2 import self as self;
3 import "dart:core" as core;
4
5 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/illegal_n amed_function_expression.dart:6:11: Error: A function expression can't have a re turn type.\n var x = void f<T>(T t) {};\n ^", "pkg/front_end/testcases /illegal_named_function_expression.dart:6:16: Error: A function expression can't have a name.\n var x = void f<T>(T t) {};\n ^", "pkg/front_end/t estcases/illegal_named_function_expression.dart:8:9: Error: A function expressio n can't have a return type.\n print(void g<T>(T t) {});\n ^", "pkg/front _end/testcases/illegal_named_function_expression.dart:8:14: Error: A function ex pression can't have a name.\n print(void g<T>(T t) {});\n ^"]/* fro m null */;
6 static method main() → dynamic {
7 dynamic x = let final <T extends core::Object>(T) → void f = <T extends core:: Object>(T t) → void {} in f;
8 core::print(x.runtimeType);
9 core::print(let final <T extends core::Object>(T) → void g = <T extends core:: Object>(T t) → void {} in g);
10 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698