mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-19 10:51:35 +03:00
cda87a9c16
Don't use the type of a scrutinee to restrict possible patterns, because it might have been refined by a Rig0 argument that has a missing case. Instead, generate all the possible cases and check that the generated ones are impossible (there's no obvious change in performance)
10 lines
244 B
Plaintext
10 lines
244 B
Plaintext
1/1: Building Total (Total.idr)
|
|
Welcome to Idris 2 version 0.0. Enjoy yourself!
|
|
Main> Main.onlyOne:
|
|
onlyOne _
|
|
Main> Main.covered: All cases covered
|
|
Main> Main.matchInt: All cases covered
|
|
Main> Main.matchInt':
|
|
matchInt' _ _ _
|
|
Main> Bye for now!
|