Skip to content

Commit

Permalink
Remove special treatment of intersection types with await expressions…
Browse files Browse the repository at this point in the history
… (it is in flatten now)
  • Loading branch information
eernstg committed Dec 11, 2022
1 parent cdc0359 commit 43ec6a7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions specification/dartLangSpec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17111,12 +17111,8 @@ \subsection{Await Expressions}

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

0 comments on commit 43ec6a7

Please sign in to comment.