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

Initial value is not properly assigned when there is a mistake of type. #689

Open
kevinksyTRD opened this issue Mar 17, 2022 · 0 comments
Open

Comments

@kevinksyTRD
Copy link

I found that if I assign an initial value with a wrong type, it will be assigned to another variable.

Let's say we have one variable, x, which is of "Real" type and another, y, of "Integer" type.

In the OspSystemDescription.xml file, if I write

<InitialValue variable="x">
    <Integer value="1.0">
</InitialValue>

This will assigned the value 1.0 to y as it is the integer variable with the same reference number.

I think that it should either give an error or convert value to real and assign it to the correct variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant