PR#6466: use "extensible variant" rather than "open" types in error message
(Leo White) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15715 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
f517bd2947
commit
4c5c124785
|
@ -77,7 +77,7 @@ Error: Signature mismatch:
|
|||
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
|
||||
Matching over values of extensible variant types must include
|
||||
a wild card pattern in order to be exhaustive.
|
||||
type foo = ..
|
||||
type foo += Foo
|
||||
|
|
|
@ -1812,7 +1812,7 @@ let do_check_partial ?pred exhaust loc casel pss = match pss with
|
|||
let errmsg =
|
||||
match v.pat_desc with
|
||||
Tpat_construct (_, {cstr_name="*extension*"}, _) ->
|
||||
"_\nMatching over values of open types must include\n\
|
||||
"_\nMatching over values of extensible variant types must include\n\
|
||||
a wild card pattern in order to be exhaustive."
|
||||
| _ -> try
|
||||
let buf = Buffer.create 16 in
|
||||
|
|
Loading…
Reference in New Issue