mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-13 17:25:29 +03:00
fa06e9936b
* so much experimentation * tests that show preliminary evidence the new stuff is working. * small amount of cleanup * more cleanup of various troubleshooting code. * new test case added. * only log unreachable indices if there are any. * when traversing deeper simply skip over defaults since they have already been reviewed. * Remove fallback clause that the changes in this PR correctly identified as unreachable. * tidying up more. * move some common functions to a new Core.Case.Util module. * refer to case builder and case tree under new parent module. * update imports to look for CaseTree in new submodule. * update api ipkg * remove unneeded application operators. * remove or comment out unreachable default clauses caught by the changes in this PR. * a bit of code documentation and renaming for clarity. * bump previous version in CI. * fix API usage of Util module. * Add issue 1079 test cases. * forgot to add new test cases file. * remove commented-out lines by request of RefC author. * Use a SortedSet instead of nubbing a list. * update new case tree import. * Update src/Core/Case/Util.idr Co-authored-by: G. Allais <guillaume.allais@ens-lyon.org> * remove function with nothing to offer above and beyond a differently named copy of the same code. * replace a large tuple with a record; discover not all of the tuple's fields were needed. * fix shadowing warning. Co-authored-by: G. Allais <guillaume.allais@ens-lyon.org>
65 lines
1.4 KiB
Plaintext
65 lines
1.4 KiB
Plaintext
1/1: Building DefaultCases (DefaultCases.idr)
|
|
Warning: Unreachable clause: extraDefault _
|
|
|
|
DefaultCases:12:1--12:15
|
|
08 |
|
|
09 | extraDefault : MyBit -> Int
|
|
10 | extraDefault A = 1
|
|
11 | extraDefault B = 2
|
|
12 | extraDefault _ = 3
|
|
^^^^^^^^^^^^^^
|
|
|
|
Warning: Unreachable clause: earlyDefault A
|
|
|
|
DefaultCases:20:1--20:15
|
|
16 | usefulDefault _ = 2
|
|
17 |
|
|
18 | earlyDefault : MyBit -> Int
|
|
19 | earlyDefault _ = 1
|
|
20 | earlyDefault A = 2
|
|
^^^^^^^^^^^^^^
|
|
|
|
Warning: Unreachable clause: nestedExtraDefault _ _
|
|
|
|
DefaultCases:36:1--36:23
|
|
32 | nestedExtraDefault A A = 1
|
|
33 | nestedExtraDefault A B = 2
|
|
34 | nestedExtraDefault B A = 3
|
|
35 | nestedExtraDefault B B = 4
|
|
36 | nestedExtraDefault _ _ = 5
|
|
^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
Warning: Unreachable clause: nestedEarlyDefault B B
|
|
|
|
DefaultCases:49:1--49:23
|
|
45 | nestedEarlyDefault A A = 1
|
|
46 | nestedEarlyDefault A B = 2
|
|
47 | nestedEarlyDefault B A = 3
|
|
48 | nestedEarlyDefault _ _ = 4
|
|
49 | nestedEarlyDefault B B = 5
|
|
^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
1/1: Building Issue1079 (Issue1079.idr)
|
|
Warning: Unreachable clause: g3 _
|
|
|
|
Issue1079:5:1--5:5
|
|
1 | %default total
|
|
2 |
|
|
3 | g3 : (Nat, Nat) -> Nat
|
|
4 | g3 (x, y) = x
|
|
5 | g3 _ = 6
|
|
^^^^
|
|
|
|
Warning: Unreachable clause: case _ of
|
|
{(x, y) => pure x;
|
|
_ => pure 5}
|
|
|
|
Issue1079:12:7--12:18
|
|
08 |
|
|
09 | h3 : Monad m => m Nat
|
|
10 | h3 = do
|
|
11 | (x, y) <- f
|
|
12 | | _ => pure 5
|
|
^^^^^^^^^^^
|
|
|