Warning 8: this pattern-matching is not exhaustive.
Here is an example of a value that is not matched:
_
Matching over values of open types must include
a wild card pattern in order to be exhaustive.
Removing the 2nd and 3rd line would require changing the warning definition.
Original bug ID: 6466
Reporter: @whitequark
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2016-12-07T10:37:16Z)
Resolution: fixed
Priority: normal
Severity: text
Version: 4.02.0+beta1 / +rc1
Target version: 4.02.2+dev / +rc1
Fixed in version: 4.02.1+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @gasche @hcarty
Bug description
Here it is:
I scratched my head for quite a while before I got it.
Steps to reproduce
function Not_found -> ()
File attachments
The text was updated successfully, but these errors were encountered: