Opened 4 years ago

Closed 4 years ago

#6011 closed defect (fixed)

OMEdit does not correctly add redeclare statements

Reported by: Francesco Casella Owned by: Adrian Pop
Priority: blocker Milestone: 1.16.0
Component: OMEdit Version:
Keywords: Cc: Adrian Pop

Description

Please consider the attached test package:

  • activate replaceable support
  • open the package in OMEdit
  • open model S
  • double-click on m
  • select TestReplaceablePar.RM2
  • click ok

The following code is obtained

TestReplaceablePar.M m(
  RM = TestReplaceablePar.BM / TestReplaceablePar.RM2) 
  annotation(...);

I would have expected

TestReplaceablePar.M m(
  redeclare model RM = TestReplaceablePar.RM2) 
  annotation(...);

Attachments (1)

TestReplaceablePar.mo (660 bytes ) - added by Francesco Casella 4 years ago.

Download all attachments as: .zip

Change History (4)

by Francesco Casella, 4 years ago

Attachment: TestReplaceablePar.mo added

comment:1 by Francesco Casella, 4 years ago

Component: *unknown*OMEdit
Status: newassigned

comment:2 by Adrian Pop, 4 years ago

Owner: changed from Adeel Asghar to Adrian Pop
Status: assignedaccepted

I need to check this first, then I'll pass it to @adeas31 if needed.

comment:3 by Francesco Casella, 4 years ago

Resolution: fixed
Status: acceptedclosed

Checked this after PR #6752, the redeclare statement is now ok.

Note: See TracTickets for help on using tickets.