Skip to content

Commit 3192065

Browse files
committed
Corrections from current version of spec
1 parent fa68973 commit 3192065

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
@@ -16326,8 +16326,9 @@ \subsection{Conditional}
1632616326
\LMHash{}%
1632716327
It is a compile-time error if
1632816328
the static type of $e_1$ may not be assigned to \code{bool}.
16329-
The static type of $c$ is the least upper bound (\ref{leastUpperBounds}) of
16330-
the static type of $e_2$ and the static type of $e_3$.
16329+
The static type of $c$ is the least upper bound
16330+
(\ref{standardUpperBoundsAndStandardLowerBounds})
16331+
of the static type of $e_2$ and the static type of $e_3$.
1633116332

1633216333

1633316334
\subsection{If-null Expressions}
@@ -16352,8 +16353,9 @@ \subsection{If-null Expressions}
1635216353
and then $e$ evaluates to $r$.
1635316354

1635416355
\LMHash{}%
16355-
The static type of $e$ is the least upper bound (\ref{leastUpperBounds}) of
16356-
the static type of $e_1$ and the static type of $e_2$.
16356+
The static type of $e$ is the least upper bound
16357+
(\ref{standardUpperBoundsAndStandardLowerBounds})
16358+
of the static type of $e_1$ and the static type of $e_2$.
1635716359

1635816360

1635916361
\subsection{Logical Boolean Expressions}
@@ -21802,6 +21804,9 @@ \subsection{Subtypes}
2180221804
Intersection types are \emph{not} supported in general,
2180321805
only in this special case.%
2180421806
}
21807+
Every other form of type may occur during static analysis
21808+
as well as during execution,
21809+
and the subtype relationship is always determined in the same way.
2180521810

2180621811
% Subtype Rule Numbering
2180721812
\newcommand{\SrnReflexivity}{1}
@@ -24547,7 +24552,7 @@ \subsection{Function Types}
2454724552
A function object is always an instance of some class $C$ that implements
2454824553
the class \FUNCTION{} (\ref{functionType}),
2454924554
and which has a method named \CALL,
24550-
whose header is such that its function type is $C$ itself.
24555+
whose signature is the function type $C$ itself.
2455124556
\commentary{%
2455224557
Consequently, all function types are subtypes of \FUNCTION{}
2455324558
(\ref{subtypes}).%

0 commit comments

Comments
 (0)