mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2025-01-01 17:23:23 +03:00
04e4ebf80e
It's a big patch, but the summary is that it's okay to use a pattern in an erased position if either: - the pattern can also be solved by unification (this is the same as 'dot patterns' for matching on non-constructor forms) - the argument position is detaggable w.r.t. non-erased arguments, which means we can tell which pattern it is without pattern matching The second case, in particular, means we can still pattern match on proof terms which turn out to be irrelevant, especially Refl. Fixes #178
8 lines
345 B
Plaintext
8 lines
345 B
Plaintext
1/1: Building Erase (Erase.idr)
|
|
Erase.idr:5:5--5:11:While processing left hand side of Main.bad at Erase.idr:5:1--6:1:
|
|
Can't match on False (Erased argument)
|
|
Erase.idr:19:18--19:22:While processing left hand side of Main.minusBad at Erase.idr:19:1--20:1:
|
|
Can't match on LeZ (Erased argument)
|
|
Main> \m => minus (S (S m)) m prf
|
|
Main> Bye for now!
|