Opened 12 years ago
Last modified 12 years ago
#2113 closed defect
fill dimension arguments — at Initial Version
Reported by: | Lennart Ochel | Owned by: | somebody |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.0 |
Component: | Frontend | Version: | trunk |
Keywords: | Cc: | Martin Sjölund, Adrian Pop |
Description
model test Real y[5]; Integer n; algorithm n := 0; y := fill(1, 5); n := n + 2; y[1:n] := fill(2, n); end test;
error message
[/home/lochel/Documents/tests/temp/bug_2112.mo:9:3-9:23:writable] Error: Wrong type or wrong number of arguments to fill(1, n)'. (in component <NO COMPONENT>)
I guess there is no reason (and nothing in the spec) to forces the dimension arguments to be of parameter variability.
Note:
See TracTickets
for help on using tickets.