Opened 12 years ago
Closed 12 years ago
#1872 closed defect (fixed)
Array-expression and when-statements do not work
Reported by: | Martin Sjölund | Owned by: | Willi Braun |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | Backend | Version: | trunk |
Keywords: | events | Cc: |
Description
model M Boolean b[1] = {time>0.5}; Real r; Integer i; equation der(r) = 1; algorithm when b then i := integer(time); end when; end M;
The flattened code contains when {b[1]}
(which is correct). The backend changes this to when b
(which code-generation does not like).
Used in 3.2.1 Modelica.Blocks.Examples.Interaction1
Note:
See TracTickets
for help on using tickets.