Skip to content

Instantly share code, notes, and snippets.

@nomaddo
Created November 5, 2014 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nomaddo/975c93e7bd2e27f7469c to your computer and use it in GitHub Desktop.
Save nomaddo/975c93e7bd2e27f7469c to your computer and use it in GitHub Desktop.
true.ml
# 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