Skip to content
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

Allow a function typedef to reference itself. #6398

Closed
DartBot opened this issue Oct 30, 2012 · 3 comments
Closed

Allow a function typedef to reference itself. #6398

DartBot opened this issue Oct 30, 2012 · 3 comments
Assignees
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

Comments

@DartBot
Copy link

DartBot commented Oct 30, 2012

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.

@sethladd
Copy link
Contributor

Removed Type-Defect label.
Added Type-Enhancement, Area-Language, Triaged labels.

@gbracha
Copy link
Contributor

gbracha commented Nov 7, 2012

Set owner to @gbracha.
Added Accepted label.

@DartBot DartBot added Type-Enhancement area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). labels Nov 7, 2012
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed accepted labels Feb 29, 2016
@munificent
Copy link
Member

The type system people get this alarmed look on their face any time recursive types come up. We haven't seen any motivating uses for this, so, in the absence of that, we'd rather keep things simpler.

@munificent munificent added the closed-cannot-reproduce Closed as we were unable to reproduce the reported issue label Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

5 participants