Opened 9 years ago

Closed 4 years ago

#3493 closed defect (fixed)

Incorrect flatenning of conditional connectors in outer class

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

Description

model Ex
  connector InConn = input Integer;
  connector OutConn = output Integer;

  connector Conn
    parameter Boolean enabled = false;
    InConn v if enabled;
  end Conn;

  model Foo
    Conn c;
  end Foo;

  model Ex1
    outer Foo foo;
    OutConn c = 0;
  equation
    connect(foo.c.v, c);
  end Ex1;

  inner Foo foo;
  Ex1 ex1;
end Ex;

Get Error: Illegal connection: component foo.c.v is not a connector when foo.c.enabled is false.

Change History (1)

comment:1 by Per Östlund, 4 years ago

Milestone: Future1.16.0
Resolution: fixed
Status: newclosed

This is handled correctly by both the old and the new frontend now.

Note: See TracTickets for help on using tickets.