Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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 Per Östlund, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in 494b8d6.

comment:2 by Dietmar Winkler, 9 years ago

Milestone: Future1.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 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.