Skip to content

Use ";" instead of "{}" for empty constructor bodies #57150

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

Closed
pq opened this issue Feb 4, 2015 · 1 comment
Closed

Use ";" instead of "{}" for empty constructor bodies #57150

pq opened this issue Feb 4, 2015 · 1 comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. type-enhancement A request for a change that isn't a bug

Comments

@pq
Copy link
Member

pq commented Feb 4, 2015

Migrated from dartbug.com/22004:

Instead of:

class Point {
  int x, y;
  Point(this.x, this.y) {}
}

prefer:

class Point {
  int x, y;
  Point(this.x, this.y);
}
@pq pq added the type-enhancement A request for a change that isn't a bug label Feb 4, 2015
@pq
Copy link
Member Author

pq commented Feb 6, 2015

Duplicated by: #57158

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants