#3421 closed defect (fixed)
Wrong error: Tuple assignment only allowed when rhs is a function call (again)
| Reported by: | Henrik Tidefelt | Owned by: | somebody |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.4 |
| Component: | *unknown* | Version: | trunk |
| Keywords: | Cc: |
Description
Similar to #1322, the wrong error is given for the following model:
model MultiOutputAssignmentMore
function f
output Real r1;
output Real r2;
algorithm
r1 := 1.0;
r2 := 2.0;
end f;
Real x, y, z;
algorithm
(x, y, z) := f();
end MultiOutputAssignmentMore;
The error is:
[MultiOutputAssignmentMore: 15:3-15:19]: Tuple assignment only allowed when rhs is function call (in (1.0, 2.0)).
However, the right hand side is a function call; the problem is that the function has the wrong number of outputs.
Change History (4)
comment:1 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:2 by , 10 years ago
| Milestone: | Future → 1.9.4 |
|---|
Sorting these closed tickets away from "Future". Since they were closed after the last 1.9.3 release, it's very likely that they should have been part of the 1.9.4 release.
Note:
See TracTickets
for help on using tickets.

Fixed in 494b8d6.