Skip to content

Commit ad5ad39

Browse files
committed
Corrections from current version of spec
1 parent b7464a2 commit ad5ad39

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
@@ -16314,8 +16314,9 @@ \subsection{Conditional}
1631416314
\LMHash{}%
1631516315
It is a compile-time error if
1631616316
the static type of $e_1$ may not be assigned to \code{bool}.
16317-
The static type of $c$ is the least upper bound (\ref{leastUpperBounds}) of
16318-
the static type of $e_2$ and the static type of $e_3$.
16317+
The static type of $c$ is the least upper bound
16318+
(\ref{standardUpperBoundsAndStandardLowerBounds})
16319+
of the static type of $e_2$ and the static type of $e_3$.
1631916320

1632016321

1632116322
\subsection{If-null Expressions}
@@ -16340,8 +16341,9 @@ \subsection{If-null Expressions}
1634016341
and then $e$ evaluates to $r$.
1634116342

1634216343
\LMHash{}%
16343-
The static type of $e$ is the least upper bound (\ref{leastUpperBounds}) of
16344-
the static type of $e_1$ and the static type of $e_2$.
16344+
The static type of $e$ is the least upper bound
16345+
(\ref{standardUpperBoundsAndStandardLowerBounds})
16346+
of the static type of $e_1$ and the static type of $e_2$.
1634516347

1634616348

1634716349
\subsection{Logical Boolean Expressions}
@@ -21790,6 +21792,9 @@ \subsection{Subtypes}
2179021792
Intersection types are \emph{not} supported in general,
2179121793
only in this special case.%
2179221794
}
21795+
Every other form of type may occur during static analysis
21796+
as well as during execution,
21797+
and the subtype relationship is always determined in the same way.
2179321798

2179421799
% Subtype Rule Numbering
2179521800
\newcommand{\SrnReflexivity}{1}
@@ -24535,7 +24540,7 @@ \subsection{Function Types}
2453524540
A function object is always an instance of some class $C$ that implements
2453624541
the class \FUNCTION{} (\ref{functionType}),
2453724542
and which has a method named \CALL,
24538-
whose header is such that its function type is $C$ itself.
24543+
whose signature is the function type $C$ itself.
2453924544
\commentary{%
2454024545
Consequently, all function types are subtypes of \FUNCTION{}
2454124546
(\ref{subtypes}).%

0 commit comments

Comments
 (0)