mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-01 06:12:57 +03:00
bb55ac5f1d
Can't use a local which has 'erased' as its type, since that's just been substituted in while working out how many arguments a local function needs to have. Also need to ensure we've searched for default hints when encountering IBindImplicits rather than after because otherwise it might find the wrong instance. Both these problems result it terms which don't type check getting past the elaborator! So, also added a --debug-elab-check flag to check the result of elaboration. It's not on by default because there are cases where it really hurts performance, typically when inferring implicits with lots of sharing. So we'll keep it as a debug flag, for now at least. |
||
---|---|---|
.. | ||
A.idr | ||
expected | ||
run |