-
Notifications
You must be signed in to change notification settings - Fork 28
Tests check that allowed use of void
is an error
#120
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
Comments
Fixed in master and strong-mode branches |
Thanks! There are a couple of little things to think about here, though:
|
… with the assert statement. Fix an issue in syntax_t09 test
… with the assert statement. Fix an issue in syntax_t09 test
… with the assert statement. Fix an issue in syntax_t09 test
Thank you! Fixed again according your notes in both branches |
Uh oh!
There was an error while loading. Please reload this page.
With dart-lang/sdk#30176, the treatment of
void
in Dart programs is updated such that several usages that used to be compile-time errors/warnings 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:
Language/Types/Type_Void/syntax_t01
: No longer an error.Language/Types/Type_Void/syntax_t02
: No longer an error.Language/Types/Type_Void/syntax_t04
: No longer an error.Language/Types/Type_Void/syntax_t09
: The declarationvoid v
is no longer an error, so the documentation should be updated, butprint(v)
is a compile-time error.Language/Classes/Getters/void_return_type_t01
: No longer a static warning.The text was updated successfully, but these errors were encountered: