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

Side by Side Diff: pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.strong.expect

Issue 2950213002: Infer the return types of local functions where appropriate. (Closed)
Patch Set: Created 3 years, 6 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 test;
2 import self as self;
3 import "dart:core" as core;
4
5 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/inference /infer_local_function_referenced_before_declaration.dart:9:74: Error: Previous u se of 'g'.\n /*@returnType=dynamic*/ f() => /*error:REFERENCED_BEFORE_DECLARATI ON*/ g();\n ^"]/* from null */;
6 static method test() → dynamic {
7 function f() → dynamic
8 return throw new core::NoSuchMethodError::_withType(null, #g, 32, <dynamic>[ ].toList(growable: false), <dynamic, dynamic>{}, null);
9 const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError:: •("pkg/front_end/testcases/inference/infer_local_function_referenced_before_decl aration.dart:14:3: Error: Can't declare 'g' because it was already used in this scope.\n g() => 0;\n ^"));
10 () → dynamic v = f;
11 }
12 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698