Skip to content

Analyzer does not fail on invalid generics use #30180

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

Closed
matanlurey opened this issue Jul 17, 2017 · 1 comment
Closed

Analyzer does not fail on invalid generics use #30180

matanlurey opened this issue Jul 17, 2017 · 1 comment
Labels
legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@matanlurey
Copy link
Contributor

matanlurey commented Jul 17, 2017

i.e. this is reported fine by analyzer, but fails for DDC/VM/dart2js for me:

void main() {
  for (int i = 0; i < 5; i++) {
    print('hello ${i + 1}');
  }
}

typedef List<T> Example<T>(List parent<T>);
@a-siva a-siva added the legacy-area-analyzer Use area-devexp instead. label Jul 19, 2017
@bwilkerson bwilkerson added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Jul 20, 2017
@bwilkerson
Copy link
Member

See analyzer/lib/src/generated/parser.dart:4365.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants