mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 00:31:57 +03:00
9970c66417
I don't know how complete this is, but it certainly detects some of the most obvious cases which are most likely to be bugs. While I'm at it, this is as good a time as any to add a general way of reporting warnings, similar to the way of reporting errors.
4 lines
189 B
Plaintext
4 lines
189 B
Plaintext
1/1: Building unreachable (unreachable.idr)
|
|
unreachable.idr:3:1--3:18:Warning: unreachable clause: foo Nothing True
|
|
unreachable.idr:5:1--5:19:Warning: unreachable clause: foo Nothing False
|