Skip to content

Commit 8045a01

Browse files
committed
Corrections from current version of spec
1 parent 4ce96a8 commit 8045a01

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
@@ -16300,8 +16300,9 @@ \subsection{Conditional}
1630016300
\LMHash{}%
1630116301
It is a compile-time error if
1630216302
the static type of $e_1$ may not be assigned to \code{bool}.
16303-
The static type of $c$ is the least upper bound (\ref{leastUpperBounds}) of
16304-
the static type of $e_2$ and the static type of $e_3$.
16303+
The static type of $c$ is the least upper bound
16304+
(\ref{standardUpperBoundsAndStandardLowerBounds})
16305+
of the static type of $e_2$ and the static type of $e_3$.
1630516306

1630616307

1630716308
\subsection{If-null Expressions}
@@ -16326,8 +16327,9 @@ \subsection{If-null Expressions}
1632616327
and then $e$ evaluates to $r$.
1632716328

1632816329
\LMHash{}%
16329-
The static type of $e$ is the least upper bound (\ref{leastUpperBounds}) of
16330-
the static type of $e_1$ and the static type of $e_2$.
16330+
The static type of $e$ is the least upper bound
16331+
(\ref{standardUpperBoundsAndStandardLowerBounds})
16332+
of the static type of $e_1$ and the static type of $e_2$.
1633116333

1633216334

1633316335
\subsection{Logical Boolean Expressions}
@@ -21776,6 +21778,9 @@ \subsection{Subtypes}
2177621778
Intersection types are \emph{not} supported in general,
2177721779
only in this special case.%
2177821780
}
21781+
Every other form of type may occur during static analysis
21782+
as well as during execution,
21783+
and the subtype relationship is always determined in the same way.
2177921784

2178021785
% Subtype Rule Numbering
2178121786
\newcommand{\SrnReflexivity}{1}
@@ -24521,7 +24526,7 @@ \subsection{Function Types}
2452124526
A function object is always an instance of some class $C$ that implements
2452224527
the class \FUNCTION{} (\ref{functionType}),
2452324528
and which has a method named \CALL,
24524-
whose header is such that its function type is $C$ itself.
24529+
whose signature is the function type $C$ itself.
2452524530
\commentary{%
2452624531
Consequently, all function types are subtypes of \FUNCTION{}
2452724532
(\ref{subtypes}).%

0 commit comments

Comments
 (0)