DEBSOURCES
Skip Quicknav
sources / ocaml-visitors / 20251114-1 / test / polyclass.ml
12345678
class ['self] c = object (_ : 'self) method identity (x : 'a) : 'a = x end let b : bool = new c # identity true let i : int = new c # identity 0