Skip to content

Commit 85ec192

Browse files
committed
Corrections from current version of spec
1 parent c769d82 commit 85ec192

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

specification/dartLangSpec.tex

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16337,8 +16337,9 @@ \subsection{Conditional}
1633716337
\LMHash{}%
1633816338
It is a compile-time error if
1633916339
the static type of $e_1$ may not be assigned to \code{bool}.
16340-
The static type of $c$ is the least upper bound (\ref{leastUpperBounds}) of
16341-
the static type of $e_2$ and the static type of $e_3$.
16340+
The static type of $c$ is the least upper bound
16341+
(\ref{standardUpperBoundsAndStandardLowerBounds})
16342+
of the static type of $e_2$ and the static type of $e_3$.
1634216343

1634316344

1634416345
\subsection{If-null Expressions}
@@ -16363,8 +16364,9 @@ \subsection{If-null Expressions}
1636316364
and then $e$ evaluates to $r$.
1636416365

1636516366
\LMHash{}%
16366-
The static type of $e$ is the least upper bound (\ref{leastUpperBounds}) of
16367-
the static type of $e_1$ and the static type of $e_2$.
16367+
The static type of $e$ is the least upper bound
16368+
(\ref{standardUpperBoundsAndStandardLowerBounds})
16369+
of the static type of $e_1$ and the static type of $e_2$.
1636816370

1636916371

1637016372
\subsection{Logical Boolean Expressions}
@@ -21861,6 +21863,9 @@ \subsection{Subtypes}
2186121863
Intersection types are \emph{not} supported in general,
2186221864
only in this special case.%
2186321865
}
21866+
Every other form of type may occur during static analysis
21867+
as well as during execution,
21868+
and the subtype relationship is always determined in the same way.
2186421869

2186521870
% Subtype Rule Numbering
2186621871
\newcommand{\SrnReflexivity}{1}
@@ -24606,7 +24611,7 @@ \subsection{Function Types}
2460624611
A function object is always an instance of some class $C$ that implements
2460724612
the class \FUNCTION{} (\ref{functionType}),
2460824613
and which has a method named \CALL,
24609-
whose header is such that its function type is $C$ itself.
24614+
whose signature is the function type $C$ itself.
2461024615
\commentary{%
2461124616
Consequently, all function types are subtypes of \FUNCTION{}
2461224617
(\ref{subtypes}).%

0 commit comments

Comments
 (0)