Analyzer allows function type parameters in new Function syntax #33398
Labels
legacy-area-analyzer
Use area-devexp instead.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Milestone
The grammar for the new for Dart 2 Function type syntax does not allow old-style function typed parameters to be mixed in with the new Function syntax. The following should be rejected:
The analyzer currently allows this.
See https://github.com/dart-lang/sdk/blob/master/docs/language/informal/generic-function-type-alias.md for the relevant grammar.
cc @eernstg
The text was updated successfully, but these errors were encountered: