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

No description of "abstract" modifier in classDefinition #481

Closed
scheglov opened this issue Nov 16, 2011 · 4 comments
Closed

No description of "abstract" modifier in classDefinition #481

scheglov opened this issue Nov 16, 2011 · 4 comments
Assignees
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language).

Comments

@scheglov
Copy link
Contributor

7.1.1 speaks about "abstract" modifier for class (which is not implemented, but I'm implementing it now), but 7 does not describe it in classDefinition.

@gbracha
Copy link
Contributor

gbracha commented Dec 15, 2011

Set owner to @gbracha.
Added Accepted label.

@gbracha
Copy link
Contributor

gbracha commented Dec 15, 2011

Issue #872 has been merged into this issue.

@gbracha
Copy link
Contributor

gbracha commented Dec 16, 2011

I've added it as an optional modifier on class declarations. It's effect is simply to help define what an abstract class is. The notion of abstract class itself effects the handling of certain type warnings (for missing interface members and for instance creation). I've moved that discussion from 7.1.1 to 7.


Added Done label.

@scheglov
Copy link
Contributor Author

Still no excuse for instantiating abstract/incomplete versions of classes using factory constructors? I understand that warning here is nice to have. But no need to show this warning for each place of using factory constructor. If factory constructor itself tries to instantiate abstract/incomplete class, then we will show warning in factory constructor body.

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).
Projects
None yet
Development

No branches or pull requests

3 participants