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

Fail on parameters without binding or start value #11805

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

phannebohm
Copy link
Contributor

Related Issues

#10386

Purpose

MLS 3.6 no longer defines default start values for predefined types, so fixed parameters without binding or start attribute cannot be assigned any value. So the model should be rejected.

Approach

BackendVariable.varBindExpStartValue can fail now when neither binding nor start attribute exists.
I'm not sure if that is desired behavior in all cases. I tried my best to understand the surrounding code.

@phannebohm phannebohm added the COMP/OMC/Backend Issue and pull request related to the backend label Jan 12, 2024
@phannebohm phannebohm self-assigned this Jan 12, 2024
@phannebohm phannebohm force-pushed the 10386-parameter-without-binding branch from 451b2c2 to 16d4da1 Compare March 5, 2024 13:14
@perost
Copy link
Member

perost commented Mar 5, 2024

What's the plan with this PR? I've just implemented the check in the frontend as discussed in #10386 but haven't created a PR yet, but it's going to conflict with this PR due to the changed error messages. If this is still something we want I can just wait for this to be merged so I can fix the conflicts on my side.

@phannebohm
Copy link
Contributor Author

phannebohm commented Mar 5, 2024

No go ahead, I'll rebase this PR later or close it if it's not needed anymore 🙂

@phannebohm phannebohm marked this pull request as draft March 5, 2024 13:23
@phannebohm phannebohm force-pushed the 10386-parameter-without-binding branch from 16d4da1 to eb71d88 Compare April 3, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COMP/OMC/Backend Issue and pull request related to the backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants