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: 6522 Reporter:@damiendoligez Status: closed (set by @damiendoligez on 2014-09-22T19:34:36Z) Resolution: fixed Priority: normal Severity: tweak Version: 4.02.0+dev Target version: 4.02.1+dev Fixed in version: 4.02.1+dev Category: ~DO NOT USE (was: OCaml general)
Bug description
Now that (&) and (or) are marked obsolete in the stdlib, we get two warnings about each.
We should remove the ad-hoc code that warns about them, and let the generic one do its job.
Steps to reproduce
$ ocaml
OCaml version 4.02.0+dev16-2014-08-21
true & true;;
Warning 3: deprecated: Pervasives.&
Warning 3: deprecated: operator (&); you should use (&&) instead
: bool = true
The text was updated successfully, but these errors were encountered:
Note that the @@deprecated attribute can take a string argument which will be displayed along with the warning message. This allows us to give the same information as the previous ad hoc code.
Original bug ID: 6522
Reporter: @damiendoligez
Status: closed (set by @damiendoligez on 2014-09-22T19:34:36Z)
Resolution: fixed
Priority: normal
Severity: tweak
Version: 4.02.0+dev
Target version: 4.02.1+dev
Fixed in version: 4.02.1+dev
Category: ~DO NOT USE (was: OCaml general)
Bug description
Now that (&) and (or) are marked obsolete in the stdlib, we get two warnings about each.
We should remove the ad-hoc code that warns about them, and let the generic one do its job.
Steps to reproduce
$ ocaml
OCaml version 4.02.0+dev16-2014-08-21
true & true;;
Warning 3: deprecated: Pervasives.&
Warning 3: deprecated: operator (&); you should use (&&) instead
The text was updated successfully, but these errors were encountered: