SHARE
TWEET

Untitled

a guest Feb 16th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module rec A : sig
  2.   class virtual c:
  3.     object
  4.       method a: string;
  5.     end;
  6. end = struct
  7.   class virtual c =
  8.     object
  9.       method  a = "a";
  10.     end;
  11. end
  12. and B : sig
  13.   class c:
  14.     object
  15.       inherit A.c;
  16.       method b:string;
  17.     end;
  18. end = struct
  19.   class c =
  20.     object
  21.       inherit A.c;
  22.       method b = "b";
  23.     end;
  24. end
  25. and C : sig
  26.   class c:
  27.     object
  28.       inherit B.c;
  29.       method c: string;
  30.     end;
  31. end = struct
  32.   class c =
  33.     object
  34.       inherit B.c;
  35.       method c = "c";
  36.     end;
  37. end;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top