#3520 closed defect (fixed)
Allow instantiaton of inherited classes
Reported by: | gossen | Owned by: | gossen |
---|---|---|---|
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 Changed 9 years ago by gossen
- Owner changed from somebody to gossen
- Status changed from new to accepted
comment:2 Changed 9 years ago by adrpo
- Resolution set to fixed
- Status changed from accepted to closed
comment:3 Changed 9 years ago by lochel
- Component changed from Unknown to Frontend
- Milestone changed from Future to 1.9.4
comment:4 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4 to 1.9.4-1.9.x
Milestone renamed
comment:5 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4-1.9.x to 1.9.4
Milestone renamed
Note: See
TracTickets for help on using
tickets.
Fixed in 4acff37/OMCompiler with test in 2db2812/OpenModelica-testsuite.