Opened 12 years ago

Closed 12 years ago

#2035 closed defect (fixed)

Error with replaceable models

Reported by: julian.wyszynski Owned by: somebody
Priority: high Milestone: 1.9.0
Component: Frontend Version: trunk
Keywords: Cc: Per Östlund

Description

In the newest nightly-build r14903 model1 of attached package gives Error: Part modelPackage of base class modelPackage.Base is replaceable.

In nightly-build r13615 it was working.

By redeclaring modelPackage in model1 it should not be replaceable anymore and I think it should be possible to build a model this way.

Attachments (1)

ReplaceableError.mo (643 bytes ) - added by julian.wyszynski 12 years ago.
Package showing Error

Download all attachments as: .zip

Change History (3)

by julian.wyszynski, 12 years ago

Attachment: ReplaceableError.mo added

Package showing Error

comment:1 by Martin Sjölund, 12 years ago

Cc: Per Östlund added
Component: BackendFrontend
Owner: changed from probably noone to somebody

comment:2 by Per Östlund, 12 years ago

Resolution: fixed
Status: newclosed

It's unclear in the specification how this should be handled, but Dymola seems to agree with you. So I have disabled this check for now, until we can implement it correctly (I'm currently rewriting a lot of that part of the compiler).

Several parts of the compiler assumes that base classes have not been replaced though, so expect trouble if you do replace base classes for now. If you do find any issues related to this, feel free to open tickets and assign them to me.

Note: See TracTickets for help on using tickets.