Skip to content

void arrow functions should allow any rhs type #28939

Closed
@floitschG

Description

@floitschG

It is no longer a static type warning if an arrow function (declared with =>) has a body which is an expression of a type that is not assignable to void.

Activity

added
area-metaCross-cutting, high-level issues (for tracking many other implementation issues, ...).
on Mar 1, 2017
added this to the 1.23 milestone on Mar 1, 2017
self-assigned this
on Mar 1, 2017
added
area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).
on Mar 2, 2017
modified the milestones: 1.24, 1.23 on Mar 15, 2017
mit-mit

mit-mit commented on Mar 15, 2017

@mit-mit
Member

Punting to 1.24 per dart-leads discussion.

modified the milestones: 1.25, 1.24 on May 10, 2017
eernstg

eernstg commented on May 10, 2017

@eernstg
Member

Punting to 1.25, in agreement with Kasper: The spec part was moved to 1.25 and this meta issue awaits that. The implementation parts are being landed for 1.24.

added a commit that references this issue on May 18, 2017

Announced #28939 (`void f() => e` allows an e of any type) in changelog

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

Metadata

Metadata

Assignees

Labels

area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).area-metaCross-cutting, high-level issues (for tracking many other implementation issues, ...).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @floitschG@eernstg@mit-mit

      Issue actions

        `void` arrow functions should allow any rhs type · Issue #28939 · dart-lang/sdk