Skip to content

Fasta parser doesn't support annotations on local functions #30031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
stereotype441 opened this issue Jun 27, 2017 · 0 comments
Open

Fasta parser doesn't support annotations on local functions #30031

stereotype441 opened this issue Jun 27, 2017 · 0 comments
Assignees
Labels
front-end-fasta legacy-area-front-end Legacy: Use area-dart-model instead. P2 A bug or feature request we're likely to work on

Comments

@stereotype441
Copy link
Member

The following syntax is accepted by analyzer, and AFAICT is permitted by the spec:

class Foo {
  const Foo();
}

void test() {
  @Foo()
  void f() {}
}

But it causes Fasta to give the following error:

pkg/front_end/testcases/inference/foo.dart:14:9: Error: Expected ';' before this.
  void f() {}
        ^
@stereotype441 stereotype441 added front-end-fasta legacy-area-front-end Legacy: Use area-dart-model instead. labels Jun 27, 2017
@jensjoha jensjoha added the P2 A bug or feature request we're likely to work on label Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end-fasta legacy-area-front-end Legacy: Use area-dart-model instead. P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

3 participants