Open Stoicheion opened 7 years ago
The code for desugaring binders in the dsl works from outside to inside, for each binder replacing all matching variables in its scope with de Bruijn indices. It does not stop at binders which bind the same variable, so in all every variable is associated to the outermost binder with a matching name. Relevant variable-replacing code.
idris version 0.12.3 "x" in the body of "test0" refers to the outermost binder of "x" instead of the innermost.