Created
November 5, 2014 11:31
-
-
Save nomaddo/975c93e7bd2e27f7469c to your computer and use it in GitHub Desktop.
true.ml
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
# type t = true of bool;; | |
type t = true of bool | |
# true true;; | |
- : t = true true | |
# type 'a t = true of 'a | |
;; | |
type 'a t = true of 'a | |
# true true;; | |
Characters 5-9: | |
true true;; | |
^^^^ | |
Error: The constructor true expects 1 argument(s), | |
but is applied here to 0 argument(s) | |
# if true then 1 else 2;; | |
- : int = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment