Allow a function typedef to reference itself. #6398
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-cannot-reproduce
Closed as we were unable to reproduce the reported issue
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by @decitrig
Currently the spec forbids typedefs such as the following:
typedef StateFn StateFn()
Where this would mean a function that returns another function of the same type. It would be nice to be able to define such functions, as right now they just have to be defined to return Function and the type information is lost.
The text was updated successfully, but these errors were encountered: