OLD | NEW |
(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 {} |
OLD | NEW |