Advertisement
Guest User

Untitled

a guest
Mar 21st, 2015
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.41 KB | None | 0 0
  1. module type FOO = sig
  2.   type t
  3.   type ('a, 'b) op
  4.  
  5.   val blah1 : (t, t * t) op
  6.   val blah2 : (t, t list) op
  7. end with type ('a, 'b) op = 'a -> 'b
  8.  
  9. (* Changing that final = to a := does not work:
  10.  
  11. Characters 117-145:
  12.   end with type ('a, 'b) op := 'a -> 'b;;
  13.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  14. Error: Only type constructors with identical parameters can be substituted.
  15.  
  16.    What does this error mean?
  17.  
  18. *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement