Open mbrea-c opened 1 year ago
I think this will be a hard one to fix; last I checked, Agda doesn't give us the buffer range we need to change when it gives splits. If that's still the case, we'd somehow need to figure out the scope of the where block on our own :|
Steps to reproduce
Load the following code:
x
at the goalExpected result
Variable
x
is successfully split in casesActual result
The following error:
Where this is used
Afaik using
λ where
is a common pattern when paired withcase_of_
from theFunction.Base
module in the stdlib. Personally, I use it for type-safety proofs in large developments, where the nesting makes it harder to cleanly use with-abstractions.Edit: Found some more related weird behaviour. In the following snippet:
case splitting on
x
in the second goal will actually splitz
from the first lambda.