Skip to content

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

@lkuper

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions