Allow instantiaton of inherited classes
/* 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)
Owner: |
changed from somebody to Maksimov Doe
|
Status: |
new → accepted
|
Resolution: |
→ fixed
|
Status: |
accepted → closed
|
Component: |
Unknown → Frontend
|
Milestone: |
Future → 1.9.4
|
Milestone: |
1.9.4 → 1.9.4-1.9.x
|
Milestone: |
1.9.4-1.9.x → 1.9.4
|
Fixed in 4acff37/OMCompiler with test in 2db2812/OpenModelica-testsuite.