Opened 3 years ago

#5055 new defect

If expression type calculation bug

Reported by: Jonathan Kämpe Owned by: Jonathan Kämpe
Priority: major Milestone:
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:

Description

The following passes typecheck, it shouldnt.

function f
    input Real[:] x;
    output Real[:] y = x;
    algorithm
end f;
    
    parameter Real[:] x = f({1});
    parameter Real[:] y = if x[1] > 0 then f({x}) else f({0});

Change History (0)

Note: See TracTickets for help on using tickets.