Skip to content

Commit 43ec6a7

Browse files
committed
Remove special treatment of intersection types with await expressions (it is in flatten now)
1 parent cdc0359 commit 43ec6a7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

specification/dartLangSpec.tex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17111,12 +17111,8 @@ \subsection{Await Expressions}
1711117111

1711217112
\LMHash{}%
1711317113
Evaluation of an await expression $a$ of the form \code{\AWAIT{} $e$}
17114-
where $e$ has static type $S_0$ proceeds as follows:
17114+
where $e$ has static type $S$ proceeds as follows:
1711517115
First, the expression $e$ is evaluated to an object $o$.
17116-
If $S_0$ is of the form \code{$X$\,\,\&\,\,$S_1$}
17117-
(\ref{intersectionTypes})
17118-
then let $S$ be $X$.
17119-
Otherwise, let $S$ be $S_0$.
1712017116
Let $T$ be \Flatten{$S$}
1712117117
(\ref{functionExpressions}).
1712217118
It is a dynamic type error if the run-time type of $o$ is not a subtype

0 commit comments

Comments
 (0)