Opened 14 years ago

Last modified 7 years ago

#1458 reopened defect

Cyclic default-bindings in functions are still accepted — at Initial Version

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

Description

The check should probably be moved to the instantiation of functions (because we fall back to generation of code). We can check for usage of unbound variables in the same place later on...

{{{function f

output Real y = y;

end f;

class A

Real y = 5.79776549334303e-316;

end A;
Error: Cyclically dependent constants or parameters found in scope : {y}
}}}

Change History (0)

Note: See TracTickets for help on using tickets.