﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1934	Support calling functions via component reference	Christian Schubert	Adrian Pop	"Hi, 

while testing several Hydraulics libraries I encountered the following problem with OpenModelica:

We have a partial record which defines a partial replaceable function. In a subclass the function is redeclared with a proper implementation.

This record is then used in as an inner/outer variable where the outer variable is defined as the baseclass and the inner variable is the proper subclass.

Unfortunately OpenModelica tries to compile the partial function from the inner baseclass and thus the model becomes invalid.

In the simplified submodel attached there seems to be also a problem with lookup which does not occur in dymola?!

This technique is found in several different libraries, so I use priority = High.

Background:
For every fluid there is a record specifying a function for calculating the bulk modulus. We have a single BaseClass for all fluids defining which functions have to be implemented. All library components then use 'outer BaseClass' in their implementations hoping that they use the proper inner model from the top model."	defect	closed	high	1.14.0	Frontend	trunk	fixed	replaceable partial function	Martin Sjölund
