Skip to content

Odd function assignment #51

Closed
Closed
@DartBot

Description

@DartBot

This issue was originally filed by yui.n...@gmail.com


What steps will reproduce the problem?

  1. Run following code:
      main() {
        f = (x){return x*9;};
        print(f(3));
      }
  2. it fails, "cannot resolve f"

What is the expected output? What do you see instead?

It should say 27, the same result of following code.
main() {
  Function f = (x){return x*9;};
  print(f(3));
}

What version of the product are you using? On what operating system?

http://www.dartlang.org/ 2011-10-11

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-invalidClosed as we don't believe the reported issue is generally actionable

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions