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

Please review new void used as type message #12969

Closed
peter-ahe-google opened this issue Sep 1, 2013 · 7 comments
Closed

Please review new void used as type message #12969

peter-ahe-google opened this issue Sep 1, 2013 · 7 comments
Assignees
Labels
P2 A bug or feature request we're likely to work on type-documentation A request to add or improve documentation web-dart2js

Comments

@peter-ahe-google
Copy link
Contributor

I have looked at these error messages:

foo.dart:1:1: expected identifier, but got 'void'
void x;
^^^^
foo.dart:1:5: Error: Type "void" is only allowed in a return type.
foo(void x) {}
    ^^^^

It is changed to:

foo.dart:1:1: Error: Type 'void' can't be used here because it isn't a return type.
Try removing 'void' keyword or replace it with 'var', 'final', or a type.
void x;
^^^^
foo.dart:1:5: Error: Type 'void' can't be used here because it isn't a return type.
Try removing 'void' keyword or replace it with 'var', 'final', or a type.
foo(void x) {}
    ^^^^

Let me know what you think.

@kasperl
Copy link

kasperl commented Sep 18, 2013

Added this to the M7 milestone.

@kwalrath
Copy link
Contributor

I'd just delete " because it isn't a return type". It confused me.
Also, the "Try" could be:

Try removing 'void' or replacing it with...

@kasperl
Copy link

kasperl commented Sep 23, 2013

Removed this from the M7 milestone.
Added this to the Later milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@peter-ahe-google
Copy link
Contributor Author

cc @lukechurch.
Set owner to @peter-ahe-google.
Added Accepted label.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@peter-ahe-google peter-ahe-google added type-documentation A request to add or improve documentation Priority-Medium web-dart2js labels Aug 4, 2014
@peter-ahe-google peter-ahe-google self-assigned this Aug 4, 2014
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on and removed accepted labels Feb 29, 2016
@bkonyi
Copy link
Contributor

bkonyi commented Jun 18, 2018

I'm guessing this has been resolved and can be closed, right @peter-ahe-google?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 A bug or feature request we're likely to work on type-documentation A request to add or improve documentation web-dart2js
Projects
None yet
Development

No branches or pull requests

5 participants