Opened 10 years ago

Last modified 9 years ago

#3163 new defect

Cycling binding that is not cyclic detected

Reported by: Martin Sjölund Owned by: Per Östlund
Priority: high Milestone: Future
Component: Frontend Version: trunk
Keywords: Cc:

Description (last modified by Per Östlund)

If M.id is renamed to M.idx, the following code works. Seems we do not find out if an identifier comes from within the function scope or not.

model M

function f
  input Integer id;
  output Integer o = id;
end f;

function g = f(final id=id);

Integer id;
Integer y = f(id);
Integer z = g();

end M;

Change History (2)

comment:1 by Per Östlund, 9 years ago

Description: modified (diff)

comment:2 by Adrian Pop, 9 years ago

This basically happens because we don't have a fully qualified DAE cref so that we can fully qualify stuff we send to the function.

Note: See TracTickets for help on using tickets.