You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 7897 Reporter: copy Status: new Resolution: open Priority: normal Severity: minor Version: 4.07.1 Category: typing Monitored by:@nojb@gasche@hcarty
Bug description
Warning 38 is thrown for exception aliases that aren't raised in the same file. The warning is invalid since a value containing this exception might be raised in another file.
Steps to reproduce
$ cat test.ml
exception Bar = Pervasives.Exit
let is_bar = function Bar -> true | _ -> false
$ cat test.mli
val is_bar : exn -> bool
$ ocamlbuild -tag 'warn(+a)' test.native
File "test.ml", line 1, characters 0-31:
Warning 38: exception Bar is never used to build values.
(However, this constructor appears in patterns.)
The text was updated successfully, but these errors were encountered:
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
Original bug ID: 7897
Reporter: copy
Status: new
Resolution: open
Priority: normal
Severity: minor
Version: 4.07.1
Category: typing
Monitored by: @nojb @gasche @hcarty
Bug description
Warning 38 is thrown for exception aliases that aren't raised in the same file. The warning is invalid since a value containing this exception might be raised in another file.
Steps to reproduce
$ cat test.ml
exception Bar = Pervasives.Exit
let is_bar = function Bar -> true | _ -> false
$ cat test.mli
val is_bar : exn -> bool
$ ocamlbuild -tag 'warn(+a)' test.native
File "test.ml", line 1, characters 0-31:
Warning 38: exception Bar is never used to build values.
(However, this constructor appears in patterns.)
The text was updated successfully, but these errors were encountered: