Erroneous warning in function
model M
function f
input Real r;
output Real o := x;
protected
Real x := r;
Real y(start=c);
algorithm
o := r;
o := x;
o := c;
end f;
Real r = sin(time), x = f(time);
constant Real c = 3.4;
end M;
Error-message:
[a.mo:14:3-14:24:writable] Warning: Invalid public variable c, function variables that are not input/output must be protected.
Which is obviously wrong (c is not part of a function).
Change History
(4)
Resolution: |
→ fixed
|
Status: |
new → closed
|
Milestone: |
Future → pre1.9.4
|
Milestone: |
pre1.9.4 → 1.9.4
|
It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.