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-0dff7051ff02
master
Alain Frisch 2013-06-12 12:53:25 +00:00
parent 81665cc262
commit 5c4b982459
1 changed files with 3 additions and 0 deletions

View File

@ -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}}