Skip to content

Crash after invalid type leaves entity.type nil #140

@vdka

Description

@vdka
f :: fn(a: any) -> void {
}

main :: fn() -> void {
    a := struct{}
    f(a)
}

without the call to f the following error is reported.

type(struct{}) is not an expression

The result of that error seems to be that entity has it's type left nil which later on causes a crash

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions