Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. orin% ocaml
  2. OCaml version 4.06.0
  3.  
  4. # module type FOO = sig type foo val foo : foo end;;
  5. module type FOO = sig type foo val foo : foo end
  6. # module Foo : FOO = struct type foo = int let foo = 0 end;;
  7. module Foo : FOO
  8. # Foo.foo = 0;;
  9. Characters 10-11:
  10. Foo.foo = 0;;
  11. ^
  12. Error: This expression has type int but an expression was expected of type
  13. Foo.foo
  14. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement