Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3520 closed defect (fixed)

Allow instantiaton of inherited classes

Reported by: Maksimov Doe Owned by: Maksimov Doe
Priority: high Milestone: 1.9.4
Component: Frontend Version:
Keywords: Cc:

Description

/* Ex.mo */

model Base
  class Foo
    parameter Integer foo = 0;
  end Foo;
end Base;

model Derived
  extends Base;
end Derived;
../OpenModelica/build/bin/omc -i=Derived.Foo Ex.mo
Error processing file: Ex.mo
Error: Failed to load package Derived (default) using MODELICAPATH /home/tim/dev-root/src/OpenModelica/build/lib/omlibrary:/home/tim/.openmodelica/libraries/.
Error: Class Derived.Foo not found in scope <TOP>.

# Error encountered! Exiting...
# Please check the error message and the flags.

Execution failed!

It would be great if inherited classes can be instantiated as well.

Change History (5)

comment:1 by Maksimov Doe, 9 years ago

Owner: changed from somebody to Maksimov Doe
Status: newaccepted

comment:2 by Adrian Pop, 9 years ago

Resolution: fixed
Status: acceptedclosed

comment:3 by Lennart Ochel, 9 years ago

Component: UnknownFrontend
Milestone: Future1.9.4

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.