Skip to content

Invalid extends of operator record as record #1470

@maltelenz

Description

@maltelenz

Here:

record ComplexCharacteristicImpedance = Complex (redeclare
CharacteristicResistance re, redeclare
CharacteristicReactance im) "Complex Characterisitc impedance";

we have:

Invalid extends-clause. ComplexCharacteristicImpedance is a record and Complex is an operator record, but a record cannot extend an operator record.

according to the table in 7.1.3 of the specification: https://specification.modelica.org/maint/3.6/inheritance-modification-and-redeclaration.html#restrictions-on-the-kind-of-base-class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions