Skip to content

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

Closed
@eernstg

Description

@eernstg

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.

Activity

eernstg

eernstg commented on Jul 26, 2017

@eernstg
MemberAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @eernstg

        Issue actions

          co19 tests check that allowed use of `void` is an error · Issue #30264 · dart-lang/sdk