Skip to content

Type inferring of returning type for block doesn't work #1

@kaomoneus

Description

@kaomoneus

E.g.

String foo() {
  final now = DateTime.now();
  final v = d.let((dd) => "213");
  return v; // Compile error, since 'v' inferred to Object?
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions