From 69eb716f17cca76be4b620358b4a6c526e9545c9 Mon Sep 17 00:00:00 2001 From: OLSSON Hans Date: Fri, 13 May 2022 12:57:39 +0200 Subject: [PATCH] Also forbid protected --- chapters/classes.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/classes.tex b/chapters/classes.tex index 36e52ded9..ca41ff13f 100644 --- a/chapters/classes.tex +++ b/chapters/classes.tex @@ -745,7 +745,7 @@ \subsection{Short Class Definitions}\label{short-class-definitions} \subsection{Combining Base Classes and Other Elements}\label{restriction-on-combining-base-classes-and-other-elements}\label{combining-base-classes-and-other-elements} -It is not legal to combine equations, algorithms, components, or base classes with an extends from an array class, a class with non-empty \lstinline[language=grammar]!base-prefix!, a \firstuse{simple type} (\lstinline!Real!, \lstinline!Boolean!, \lstinline!Integer!, \lstinline!String! and enumeration types), or any class transitively extending from an array class, a class with non-empty \lstinline[language=grammar]!base-prefix!, or a simple type. +It is not legal to combine equations, algorithms, components, base classes, or protected elements with an extends from an array class, a class with non-empty \lstinline[language=grammar]!base-prefix!, a \firstuse{simple type} (\lstinline!Real!, \lstinline!Boolean!, \lstinline!Integer!, \lstinline!String! and enumeration types), or any class transitively extending from an array class, a class with non-empty \lstinline[language=grammar]!base-prefix!, or a simple type. \begin{example} \begin{lstlisting}[language=modelica]