Source

ocamlspot / tests / inherit2.ml

1
2
3
4
5
6
7
8
9
class c x = object
  val x = x
end

class c2 = object
  inherit let x = 1 in c x as super
  method m = x
end