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

Constants - constants validation - unresolvable constants #294

Closed
Tracked by #208
riederm opened this issue Sep 21, 2021 · 0 comments · Fixed by #298
Closed
Tracked by #208

Constants - constants validation - unresolvable constants #294

riederm opened this issue Sep 21, 2021 · 0 comments · Fixed by #298
Assignees
Milestone

Comments

@riederm
Copy link
Collaborator

riederm commented Sep 21, 2021

constants that can not be evaluated into a value should be reported as validation errors

VAR_GLOBAL CONSTANT
   u : INT;         //fail, no value defined
   x : INT := 7;
   y : INT := x;
   z : INT := z + q;   // fail - q is not defined
END_VAR
@riederm riederm mentioned this issue Sep 21, 2021
9 tasks
riederm added a commit that referenced this issue Sep 22, 2021
riederm added a commit that referenced this issue Sep 22, 2021
riederm added a commit that referenced this issue Sep 24, 2021
@riederm riederm self-assigned this Sep 24, 2021
@riederm riederm added this to the oscat milestone Sep 25, 2021
@riederm riederm linked a pull request Sep 25, 2021 that will close this issue
@ghaith ghaith moved this to Done in Next Jan 9, 2023
@ghaith ghaith added this to Next Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant