Skip to content

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

Closed
@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions