diff options
Diffstat (limited to 'doc/reference')
-rw-r--r-- | doc/reference/ScalaReference.tex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/reference/ScalaReference.tex b/doc/reference/ScalaReference.tex index 83e8665c7c..6abb8a3596 100644 --- a/doc/reference/ScalaReference.tex +++ b/doc/reference/ScalaReference.tex @@ -1459,8 +1459,9 @@ Classes (\sref{sec:classes}) and objects A template defines the type signature, behavior and initial state of a class of objects or of a single object. Templates form part of instance creation expressions, class definitions, and object -definitions. A template ~\lstinline@$sc$ with $mc_1$ with $\ldots$ -with $mc_n$ {$stats\,$}@~ consists of a constructor invocation $sc$ +definitions. A template +~\lstinline@$sc$ with $mc_1$ with $\ldots$ with $mc_n$ {$stats\,$}@~ +consists of a constructor invocation $sc$ which defines the template's {\em superclass}, constructor invocations ~\lstinline@$mc_1 \commadots mc_n$@~ $(n \geq 0)$, which define the template's {\em mixin classes}, and a statement sequence $stats$ which |