Opened 5 years ago
Closed 5 years ago
#5910 closed defect (fixed)
"Cannot resolve type of expression" when function output is given by functionals
Reported by: | Owned by: | Per Östlund | |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | New Instantiation | Version: | v1.16.0-dev |
Keywords: | Cc: |
Description
Basically, this works:
function G input TestGTest2.FunctionsPrototypes.Gsubfun fun; input Real def; output Real f; algorithm f:= fun(inVal=def); end G;
while this doesn't
function G input TestGTest3.FunctionsPrototypes.Gsubfun fun; input Real def; output Real f; algorithm f:= fun(inVal=def) + fun(inVal=def); end G;
error is:
Cannot resolve type of expression fun(BOX(def)) + fun(BOX(def)). The operands have types #Real, #Real in component <NO_COMPONENT>.
the only change is in the output of function G.
I'm on OpenModelica v1.16.0-dev-259-g8a5138f38 on Win10 x64
See minimal example
Attachments (1)
Change History (4)
by , 5 years ago
comment:1 by , 5 years ago
Component: | Code Generation → New Instantiation |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 5 years ago
Milestone: | Future → 1.16.0 |
---|
Note:
See TracTickets
for help on using tickets.
minimal example