Opened 6 years ago

Last modified 6 years ago

#5178 reopened defect

Incorrect Warning - not balanced connector

Reported by: igor.timofeyev@… Owned by: Per Östlund
Priority: normal Milestone: 2.1.0
Component: New Instantiation Version:
Keywords: instantiation balanced connector Cc:

Description

In the following code all variables inside AA should have prefix input, and since that there should be no message about "unbalanced connector AA", but this message apeears when instantiating AA.

class test

connector A
Real x;
end A;

connector AA = input A;

end test;

Change History (4)

comment:1 by igor.timofeyev@…, 6 years ago

Component: *unknown*New Instantiation
Owner: changed from somebody to Per Östlund

comment:2 by Francesco Casella, 6 years ago

Milestone: 1.13.02.0.0
Resolution: worksforme
Status: newclosed

Flattening this model with the new front-end -d=newInst

class test

connector A
Real x;
end A;

connector AA = input A;

AA aa;
end test;

produces no warning. This will be the default behaviour in 2.0.0

comment:3 by Per Östlund, 6 years ago

Resolution: worksforme
Status: closedreopened

The new frontend doesn't give a warning because we haven't implemented these checks in it yet. So lets keep this ticket open for now, so we can make sure this works correctly when the new frontend actually does the checks.

comment:4 by Francesco Casella, 6 years ago

Milestone: 2.0.02.1.0

Retargeting to 2.1.0, for 2.0.0 I would focus on getting to work stuff that doesn't

Note: See TracTickets for help on using tickets.