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
Idris says wheels is total, but not all cases are checked.
It is possible that order of cases has the influence, but i'm not sure.
It is possible related with #1917
The text was updated successfully, but these errors were encountered:
The Motocycle pattern in wheels function is missing an argument, therefore it was parsed as a variable that basically captures everything except the cases Unicycle and Bicycle. So the function is indeed total. You can have a look on what was in fact parsed with :def wheels in REPL.
Parsing is confusing and probably have to be somehow fixed in this case (by throwing an error or a warning), but totality checker is correct.
andreykl
changed the title
simple case for totality checker works wrong
better error/warning reporting when variable in patern starts from a capital letter
Dec 9, 2018
andreykl
changed the title
better error/warning reporting when variable in patern starts from a capital letter
better error/warning reporting when variable in pattern starts from a capital letter
Dec 9, 2018
Example is from TTD book
Idris says wheels is total, but not all cases are checked.
It is possible that order of cases has the influence, but i'm not sure.
It is possible related with #1917
The text was updated successfully, but these errors were encountered: