Skip to content

Type inference not working in anonymous functions #550

Description

@brson
  auto f = fn() {
    auto i = 10;
  };

Cannot determine type for i.

Activity

  1. msullivan commented on Jun 23, 2011

    @msullivan
    Contributor

    I'm extending typechecking of anonymous functions to do environment capture. I'll look into this while I'm at it.

  2. msullivan commented on Jun 24, 2011

    @msullivan
    Contributor

    This is fixed by #567.

  3. added a commit that references this issue on Dec 12, 2017
  4. added a commit that references this issue on Mar 7, 2023
  5. added a commit that references this issue on Jun 3, 2025
  6. added 2 commits that reference this issue on Aug 21, 2026
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions