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

Add warnings for undef accesses #288

Open
psybers opened this issue Mar 13, 2023 · 0 comments
Open

Add warnings for undef accesses #288

psybers opened this issue Mar 13, 2023 · 0 comments

Comments

@psybers
Copy link
Member

psybers commented Mar 13, 2023

Especially for a tuple, if we declare it before assigning to it, we should be able to error (maybe in some cases, only warn?) and prevent a runtime NPE.

v: SomeTupleType;
v.attr = ...;

Currently there is no warning/error here, so it crashes at runtime.

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