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

Default constructors for instantiable interfaces #2893

Closed
DartBot opened this issue May 4, 2012 · 6 comments
Closed

Default constructors for instantiable interfaces #2893

DartBot opened this issue May 4, 2012 · 6 comments
Assignees
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-not-planned Closed as we don't intend to take action on the reported issue type-enhancement A request for a change that isn't a bug
Milestone

Comments

@DartBot
Copy link

DartBot commented May 4, 2012

This issue was originally filed by @seaneagan


Instantiable interfaces (those with a default class) should get a default constructor when they do not declare any, just like classes. For example, the following should be allowed:

interface Foo default _Foo {}

class _Foo implements Foo {}

main() => new Foo();

@sethladd
Copy link
Contributor

sethladd commented May 4, 2012

Added Area-Language, Triaged labels.

@DartBot
Copy link
Author

DartBot commented May 5, 2012

This comment was originally written by ross.m....@gmail.com


I had a TODO in my code to report this as well - it feels strange having to explicitly declare the constructor in the interface in this situation.

@anders-sandholm
Copy link
Contributor

Added this to the M1 milestone.

@gbracha
Copy link
Contributor

gbracha commented May 8, 2012

Set owner to @gbracha.
Removed Type-Defect label.
Added Type-Enhancement, Accepted labels.

@dgrove
Copy link
Contributor

dgrove commented Jun 8, 2012

Issue #3410 has been merged into this issue.

@gbracha
Copy link
Contributor

gbracha commented Jul 2, 2012

Another problem that is rendered moot by the unification of interfaces and classes.


Added WontFix 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 Jul 2, 2012
@DartBot DartBot added this to the M1 milestone Jul 2, 2012
@kevmoo kevmoo added closed-not-planned Closed as we don't intend to take action on the reported issue type-enhancement A request for a change that isn't a bug and removed resolution-wont_fix labels Mar 1, 2016
This issue was closed.
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-not-planned Closed as we don't intend to take action on the reported issue type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants