Skip to content

Commit

Permalink
Update chapters/interface.tex
Browse files Browse the repository at this point in the history
Co-authored-by: Elena Shmoylova <eshmoylova@users.noreply.github.com>
  • Loading branch information
HansOlsson and eshmoylova committed Sep 9, 2022
1 parent 86d1f3b commit 421ffc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/interface.tex
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ \section{Type Compatible Expressions}\label{type-compatible-expressions}
If \lstinline!A! is an enumeration expression then \lstinline!B! must be an enumeration expression and the type of the full expression is enumeration expression.
The enumeration expressions must be defined in terms of an enumeration type with the same enumeration literals in the same order.
\item
If \lstinline!A! has an \lstinline!operator record! base class then \lstinline!B! must also have an \lstinline!operator record! base class, and it must be the same, and otherwise neither \lstinline!A! nor \lstinline!B! may have an \lstinline!operator record! base class.
For array and \lstinline!if!-expressions, if \lstinline!A! has an \lstinline!operator record! base class then \lstinline!B! must also have an \lstinline!operator record! base class, and it must be the same, and otherwise neither \lstinline!A! nor \lstinline!B! may have an \lstinline!operator record! base class.
This is also the \lstinline!operator record! base class for the full expression e.g.\ for \lstinline!if (cond) then A else B!.
\item
If \lstinline!A! is derived from \lstinline!ExternalObject! then \lstinline!B! must also be derived from \lstinline!ExternalObject! and they must have the same full name; and otherwise neither \lstinline!A! nor \lstinline!B! may be derived from \lstinline!ExternalObject!.
Expand Down

0 comments on commit 421ffc6

Please sign in to comment.