Guest User

Untitled

a guest
Feb 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  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;
Add Comment
Please, Sign In to add comment