Opened 14 years ago
Last modified 14 years ago
#1523 closed defect (fixed)
Empty arrays are not rejected
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Martin Sjölund, Per Östlund |
Description
Modelica Spec:
There must be at least one argument [i.e., array() or {} is not defined].
But OpenModelica allows this (it turns {} into Real[0]). Note that fill(0.0,1,0) or for-iterators, etc are allowed to create 0-length arrays.
Note:
See TracTickets
for help on using tickets.
Fixed in r9014, see test case mofiles/EmptyArray.