You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a file called Bug.idr with the following contents:
module Bug
%defaulttotaldataMNat:TypewhereMZ: MNat
MS: MNat -> MNat
minus: (n, m : MNat) -> MNat
minus MZMZ=MZ
minus n MZ= n
minus (MS k) (MS j) = minus k j
Then run:
$ idris Bug.idr
*Bug> minus (MS MZ) MZ
MS MZ : MNat
*Bug> minus MZ (MS MZ)
minus MZ (MS MZ) : MNat
Expected Behavior
*Bug> :total Bug.minus
Bug.minus is not total as there are missing cases
Observed Behavior
*Bug> :total Bug.minus
Bug.minus is Total
I'm using Idris 1.3.2. The changelog of Idris 1.3.3 doesn't mention anything related to this problem, so I assume the bug is still present.
Steps to Reproduce
Create a file called
Bug.idr
with the following contents:Then run:
Expected Behavior
Observed Behavior
I'm using Idris 1.3.2. The changelog of Idris 1.3.3 doesn't mention anything related to this problem, so I assume the bug is still present.
Bug.idr.gz
The text was updated successfully, but these errors were encountered: