mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-24 05:12:29 +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.
9 lines
158 B
Idris
9 lines
158 B
Idris
test3ok : Nat
|
|
test3ok = case (the Nat 1, the Nat 2) of
|
|
(x, y) => x + y
|
|
|
|
test3bad : Nat
|
|
test3bad = case (1, 2) of
|
|
(x, y) => x + y
|
|
|