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

co19 tests check that allowed use of void is an error #30264

Closed
eernstg opened this issue Jul 26, 2017 · 1 comment
Closed

co19 tests check that allowed use of void is an error #30264

eernstg opened this issue Jul 26, 2017 · 1 comment

Comments

@eernstg
Copy link
Member

eernstg commented Jul 26, 2017

With #30176, the treatment of void in Dart programs is updated such that several usages that used to be compile-time errors are now allowed. In particular, void can be an actual type argument and it can be the type annotation of a variable/parameter and the return type of a getter.

This calls for changes to the following co19 tests:

  • co19/Language/Types/Type_Void/syntax_t01: No longer an error.
  • co19/Language/Types/Type_Void/syntax_t02: No longer an error.
  • co19/Language/Types/Type_Void/syntax_t04: No longer an error.
  • co19/Language/Types/Type_Void/syntax_t09: The declaration void v is no longer an error, so the documentation should be updated, but print(v) is a compile-time error.
@eernstg
Copy link
Member Author

eernstg commented Jul 26, 2017

Closing this issue, it has been re-submitted as dart-lang/co19#120 in the co19 repository.

@eernstg eernstg closed this as completed Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant