mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-18 18:31:43 +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)
9 lines
296 B
Plaintext
9 lines
296 B
Plaintext
1/1: Building Vect (Vect.idr)
|
|
Welcome to Idris 2 version 0.0. Enjoy yourself!
|
|
Main> Main.append: All cases covered
|
|
Main> Main.funny: All cases covered
|
|
Main> Main.notFunny:
|
|
notFunny (False :: (False :: (True :: (True :: _))))
|
|
notFunny (False :: (True :: (True :: (True :: _))))
|
|
Main> Bye for now!
|