Skip to content

Commit 0b597cb

Browse files
committed
Corrections from current version of spec
1 parent cda4ce2 commit 0b597cb

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
@@ -16330,8 +16330,9 @@ \subsection{Conditional}
1633016330
\LMHash{}%
1633116331
It is a compile-time error if
1633216332
the static type of $e_1$ may not be assigned to \code{bool}.
16333-
The static type of $c$ is the least upper bound (\ref{leastUpperBounds}) of
16334-
the static type of $e_2$ and the static type of $e_3$.
16333+
The static type of $c$ is the least upper bound
16334+
(\ref{standardUpperBoundsAndStandardLowerBounds})
16335+
of the static type of $e_2$ and the static type of $e_3$.
1633516336

1633616337

1633716338
\subsection{If-null Expressions}
@@ -16356,8 +16357,9 @@ \subsection{If-null Expressions}
1635616357
and then $e$ evaluates to $r$.
1635716358

1635816359
\LMHash{}%
16359-
The static type of $e$ is the least upper bound (\ref{leastUpperBounds}) of
16360-
the static type of $e_1$ and the static type of $e_2$.
16360+
The static type of $e$ is the least upper bound
16361+
(\ref{standardUpperBoundsAndStandardLowerBounds})
16362+
of the static type of $e_1$ and the static type of $e_2$.
1636116363

1636216364

1636316365
\subsection{Logical Boolean Expressions}
@@ -21854,6 +21856,9 @@ \subsection{Subtypes}
2185421856
Intersection types are \emph{not} supported in general,
2185521857
only in this special case.%
2185621858
}
21859+
Every other form of type may occur during static analysis
21860+
as well as during execution,
21861+
and the subtype relationship is always determined in the same way.
2185721862

2185821863
% Subtype Rule Numbering
2185921864
\newcommand{\SrnReflexivity}{1}
@@ -24599,7 +24604,7 @@ \subsection{Function Types}
2459924604
A function object is always an instance of some class $C$ that implements
2460024605
the class \FUNCTION{} (\ref{functionType}),
2460124606
and which has a method named \CALL,
24602-
whose header is such that its function type is $C$ itself.
24607+
whose signature is the function type $C$ itself.
2460324608
\commentary{%
2460424609
Consequently, all function types are subtypes of \FUNCTION{}
2460524610
(\ref{subtypes}).%

0 commit comments

Comments
 (0)