Skip to content

Commit

Permalink
Forbid combination of parameter and input. (modelica#3211)
Browse files Browse the repository at this point in the history
* Forbid combination of parameter and input.
Closes modelica#3141
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson committed Jul 5, 2022
1 parent 2e520c5 commit a9b3f31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chapters/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ \subsubsection{Prefix Rules}\label{prefix-rules}
Variables declared with the \lstinline!stream! type prefix shall be a subtype of \lstinline!Real!.
This is further restricted in \cref{definition-of-stream-connectors}.

Variables declared with the \lstinline!input! type prefix must not also have the prefix \lstinline!parameter! or \lstinline!constant!.

The type prefix \lstinline!flow! of a component that is not a primitive element (see \cref{primitive-elements}), is also applied to the elements of the component (this is done after verifying that the type prefixes occurring on elements of the component are correct).
Primitive elements with the \lstinline!flow! type prefix shall be a subtype of \lstinline!Real! or an operator record defining an additive group, see \cref{generation-of-connection-equations}.

Expand Down

0 comments on commit a9b3f31

Please sign in to comment.