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

Emit warning for uninitialised state/parameter/internal variables #980

Open
clinssen opened this issue Nov 4, 2023 · 0 comments
Open

Emit warning for uninitialised state/parameter/internal variables #980

clinssen opened this issue Nov 4, 2023 · 0 comments

Comments

@clinssen
Copy link
Contributor

clinssen commented Nov 4, 2023

Currently, an error is emitted for state variables that are not assigned an initial value in their declaration.

Parameters and internals are allowed to be declared without a given initial value.

I propose to emit a warning for all three categories of variables.

See also this line in the documentation:
n integer # default value is 0

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