Skip to content

Commit

Permalink
Update chapters/inheritance.tex
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson and henrikt-ma committed Sep 6, 2022
1 parent bda13a9 commit 19de141
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chapters/inheritance.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,10 @@ \subsection{Annotations for Redeclaration and Modification}\label{annotation-cho
\end{lstlisting}
The choices for \lstinline!medium! shall include \lstinline!Medium()!, \lstinline!Air_30degC()!, and \lstinline!MyAir!.
If \lstinline!Medium()! is chosen it is necessary to also set its \lstinline!rho!-parameter.
\end{example}

The \lstinline!choiches! annotation can also be applied to nonreplaceable declarations, e.g.\ to describe enumerations.
\begin{example}
Applying the \lstinline!choiches! annotation to nonreplaceable declarations, e.g., to describe enumerations.
\begin{lstlisting}[language=modelica]
type KindOfController = Integer(min = 1, max = 3)
annotation(choices(
Expand Down

0 comments on commit 19de141

Please sign in to comment.