mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 12:42:02 +03:00
parent
505224e9fc
commit
741960f0d1
12
tests/idris2/coverage012/Issue484.idr
Normal file
12
tests/idris2/coverage012/Issue484.idr
Normal file
@ -0,0 +1,12 @@
|
||||
%default covering
|
||||
|
||||
data Three = Vrai | Faux | Indef
|
||||
|
||||
getType : Three -> Type
|
||||
getType Vrai = Unit
|
||||
getType Faux = Unit
|
||||
getType Indef = Void
|
||||
|
||||
swap : (t : Three) -> getType t -> Three
|
||||
swap Indef _ impossible
|
||||
swap Vrai () = Faux
|
@ -10,3 +10,17 @@ Issue899.idr:3:1--3:46
|
||||
Missing cases:
|
||||
zeroImpossible 0 _
|
||||
|
||||
1/1: Building Issue484 (Issue484.idr)
|
||||
Error: swap is not covering.
|
||||
|
||||
Issue484.idr:10:1--10:41
|
||||
06 | getType Vrai = Unit
|
||||
07 | getType Faux = Unit
|
||||
08 | getType Indef = Void
|
||||
09 |
|
||||
10 | swap : (t : Three) -> getType t -> Three
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Missing cases:
|
||||
swap Faux _
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
$1 --no-color --console-width 0 --check Issue899.idr
|
||||
$1 --no-color --console-width 0 --check Issue484.idr
|
||||
|
||||
rm -rf build
|
||||
|
Loading…
Reference in New Issue
Block a user