#3421 closed defect (fixed)
Wrong error: Tuple assignment only allowed when rhs is a function call (again)
Reported by: | henrikt | 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 Changed 9 years ago by perost
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 9 years ago by dietmarw
- Milestone changed from Future to 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.
comment:3 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4 to 1.9.4-1.9.x
Milestone renamed
comment:4 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4-1.9.x to 1.9.4
Milestone renamed
Fixed in 494b8d6.