Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash after invalid type leaves entity.type nil #140

Open
vdka opened this issue Mar 30, 2018 · 0 comments
Open

Crash after invalid type leaves entity.type nil #140

vdka opened this issue Mar 30, 2018 · 0 comments

Comments

@vdka
Copy link
Contributor

vdka commented Mar 30, 2018

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

@vdka vdka changed the title Crash when creating a variable with a type as it's rhs Crash after invalid type leaves entity.type nil Mar 30, 2018
vdka added a commit that referenced this issue Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant