#6012 closed defect (fixed)
Handle default choices for redeclare as default choices for parameters
| Reported by: | Francesco Casella | Owned by: | Adrian Pop |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.16.0 |
| Component: | OMEdit | Version: | |
| Keywords: | Cc: | Adrian Pop |
Description
Steps to reproduce the issue:
- activate replaceable support
- open the attached package in OMEdit
- select
S - double-click on
m - click on the drop-down menu
The following three classes show up:
TestReplaceablePar.RM2 TestReplaceablePar.RM1 TestReplaceablePar.M.RM
The first two choices are ok. I find the third a bit weird. From what I understand that should be treated in the same way as the default value in a regular parameter input widget. So, I would expect to get one empty item as the first element in the drop-down list (corresponding to "no redeclaration") and if I click on that, I should then see the greyed-out default value in the widget.
Attachments (1)
Change History (5)
by , 5 years ago
| Attachment: | TestReplaceablePar.mo added |
|---|
comment:1 by , 5 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → accepted |
comment:2 by , 5 years ago
| Milestone: | 1.16.0 → 1.17.0 |
|---|
We can keep this for 1.17.0, since it also involves parameters. Please check #6127 for a parameter-less example.
comment:3 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
As far as I can tell this is fixed. Reopen if not.
comment:4 by , 5 years ago
| Milestone: | 1.17.0 → 1.16.0 |
|---|
It is, sorry. I was using the test case with parameters, but parameters are actually not involved here.

This should have worked. I'll have a look.