Skip to content

Self-calls in non-object context should fail with a helpful error message #707

Closed

Description

@lkuper

This program fails with an uninformative explicit fail during typechecking.

fn main() {

    fn foo() -> int {
        ret 3();
    }

    self.foo();

}

Fix on the way...

Activity

  1. ghost assigned on Jul 18, 2011
  2. removed their assignment
    on Jun 16, 2014
  3. added 2 commits that reference this issue on Dec 12, 2017
  4. added a commit that references this issue on Apr 23, 2020
  5. added a commit that references this issue on Mar 7, 2023
  6. added a commit that references this issue on Jun 3, 2025
  7. added a commit that references this issue on Jun 18, 2025
  8. added a commit that references this issue on Sep 8, 2025
  9. added a commit that references 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions