Skip to content

Instantly share code, notes, and snippets.

@nomaddo
Created November 5, 2014 11:22
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/375aab1c263b97ccbc4f to your computer and use it in GitHub Desktop.
Save nomaddo/375aab1c263b97ccbc4f to your computer and use it in GitHub Desktop.
::1
# type t = :: of int * float;;
type t = :: of int * float
# 1 :: 1.1;;
- : t = :: (1, 1.1)
# 1 :: [];;
Characters 5-7:
1 :: [];;
^^
Error: This expression has type 'a list
but an expression was expected of type float
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment