Skip to content

Dartfmt not able to parse regress_29243_test.dart #616

Closed
@crelier

Description

@crelier

regis@belenos:~/dart2/sdk$ git cl upload
Using 50% similarity for rename/copy detection. Override with --similarity.
Running presubmit upload checks ...
Could not format because the source could not be parsed:

line 8, column 39 of tests/language/regress_29243_test.dart: Expected to find ')'.
int Function(int Function()) y = (int Function() x) => x();
^^^^^^^^
line 8, column 39 of tests/language/regress_29243_test.dart: Expected to find ';'.
int Function(int Function()) y = (int Function() x) => x();
^
line 8, column 50 of tests/language/regress_29243_test.dart: A function body must be provided.
int Function(int Function()) y = (int Function() x) => x();
^
line 8, column 51 of tests/language/regress_29243_test.dart: Expected a method, getter, setter or operator declaration.
int Function(int Function()) y = (int Function() x) => x();
^
line 8, column 51 of tests/language/regress_29243_test.dart: Expected a method, getter, setter or operator declaration.
int Function(int Function()) y = (int Function() x) => x();
^
line 8, column 51 of tests/language/regress_29243_test.dart: Unexpected text ')'.
int Function(int Function()) y = (int Function() x) => x();
^
line 8, column 59 of tests/language/regress_29243_test.dart: A function body must be provided.
int Function(int Function()) y = (int Function() x) => x();
^
Done processing /usr/local/google/home/regis/dart2/sdk/runtime/vm/parser.cc

** Presubmit ERRORS **
File output does not match dartfmt.
Fix these issues with:
/usr/local/google/home/regis/dart2/sdk/tools/sdks/linux/dart-sdk/bin/dartfmt -w
/usr/local/google/home/regis/dart2/sdk/tests/language/regress_29243_test.dart

Presubmit checks took 6.0s to calculate.

Was the presubmit check useful? If not, run "git cl presubmit -v"
to figure out which PRESUBMIT.py was run, then run git blame
on the file to figure out who to ask for help.
regis@belenos:~/dart2/sdk$

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions