Last active
November 12, 2021 13:56
-
-
Save Kakadu/de73d0993699263cb48c9b45a225774e to your computer and use it in GitHub Desktop.
alerts demo not working properly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ /tmp cat a.ml 4.12.1+flambda | |
[@@@alert unsafe "This module is unsafe!"] | |
let is_interesting_var _ _ = | |
(assert false [@alert not_implemented "1asdf"]) | |
[@@deprecated "Please do something else"] | |
[@@@ocaml.alert deprecated "Please do something else"] | |
➜ /tmp ocamlc -c a.ml -alert +not_implemented -alert +deprecated -w +3 4.12.1+flambda | |
➜ /tmp ocamlc -alert +not_implemented -alert +deprecated -w +3 -c a.ml 4.12.1+flambda | |
➜ /tmp ocamlc -alert +not_implemented -alert +deprecated -alert +unsafe -w +3 -c a.ml 4.12.1+flambda | |
➜ /tmp ocamlc --version 4.12.1+flambda | |
4.12.1 | |
➜ /tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment