Opened 9 years ago

Closed 3 years ago

#3493 closed defect (fixed)

Incorrect flatenning of conditional connectors in outer class

Reported by: gossen 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 Changed 3 years ago by perost

  • Milestone changed from Future to 1.16.0
  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.