Document the fact that the same method name or instance variable name cannot be defined several times in the same class body.
git-svn-id: http://caml.inria.fr/svn/ocamldoc/trunk@13769 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
81665cc262
commit
5c4b982459
|
@ -271,6 +271,9 @@ type. Self can only be used in method and initializers.
|
|||
Self type cannot be a closed object type, so that the class remains
|
||||
extensible.
|
||||
|
||||
Since OCaml 4.01, it is an error if the same method or instance
|
||||
variable name is defined several times in the same class body.
|
||||
|
||||
\subsubsection*{Inheritance}
|
||||
|
||||
\ikwd{inherit\@\texttt{inherit}}
|
||||
|
|
Loading…
Reference in New Issue