Open janmasrovira opened 3 days ago
I think the reason for this is that textually later definitions implicitly depend on textually earlier ones, so T
implicitly depends on Fun
.
These implicit dependencies are necessary for instance declarations to work correctly. Perhaps we could re-think this and find some less restrictive solution (with fewer implicit dependencies), but in general this is necessary.
E.g.
is incorrectly translated (with
juvix dev internal pretty Example.juvix
) toIf we put the definition of
T
beforeFun
, then the output is correct.