Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3492 closed defect (fixed)

Incorrect flatenning of connectors in outer class

Reported by: Maksimov Doe Owned by: somebody
Priority: high Milestone: 1.9.4
Component: Frontend Version:
Keywords: Cc:

Description

model Ex

  model Foo
    connector Conn
      input Integer x;
    end Conn;
    Conn c;
  end Foo;

  model Foo1
    outer Foo foo;
    output Integer x = 0;
  equation
    connect(x, foo.c.x);
  end Foo1;

  inner Foo foo;
  Foo1 foo1;
end Ex;

Get flattening output with incorrect connect equation

class Ex
  Integer foo.c.x;
  Integer foo1.x = 0;
equation
  foo1.foo.c.x = foo1.x;
end Ex;

Below is correct output:

class Ex
  Integer foo.c.x;
  Integer foo1.x = 0;
equation
  foo.c.x = foo1.x;
end Ex;

Change History (4)

comment:1 by Adrian Pop, 9 years ago

Resolution: fixed
Status: newclosed

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.