Skip to content

Commit

Permalink
Correct dynamic type of tear-off with covariant parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
eernstg committed May 31, 2023
1 parent 0ccb1e8 commit cad4ba5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions specification/dartLangSpec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15244,7 +15244,7 @@ \subsubsection{Instance Method Closurization}
\LMHash{}%
For each parameter $p_j$, $j \in 1 .. n+k$, if $p_j$ is covariant
(\ref{covariantParameters})
then $T_j$ is the built-in class \code{Object}.
then $T_j$ is \DYNAMIC. %% No user code will see this, avoid downcast in body.

\commentary{%
This is concerned with the dynamic type of the function object obtained by
Expand All @@ -15257,7 +15257,7 @@ \subsubsection{Instance Method Closurization}
}

\LMHash{}%
If $T$ is a non-generic class then for $j \in 1 .. n+k$,
Otherwise, if $T$ is a non-generic class then for $j \in 1 .. n+k$,
$T_j$ is a type annotation that denotes the same type
(\ref{typeType})
as that which is denoted by the type annotation on
Expand Down Expand Up @@ -15400,7 +15400,7 @@ \subsubsection{Super Closurization}
\LMHash{}%
For each parameter $p_j$, $j \in 1 .. n+k$, if $p_j$ is covariant
(\ref{covariantParameters})
then $T_j$ is the built-in class \code{Object}.
then $T_j$ is \DYNAMIC.

\commentary{%
This is concerned with the dynamic type of the function object obtained by
Expand All @@ -15413,7 +15413,7 @@ \subsubsection{Super Closurization}
}

\LMHash{}%
If $S$ is a non-generic class then for $j \in 1 .. n+k$,
Otherwise, if $S$ is a non-generic class then for $j \in 1 .. n+k$,
$T_j$ is a type annotation that denotes the same type
(\ref{typeType})
as that which is denoted by the type annotation on
Expand Down

0 comments on commit cad4ba5

Please sign in to comment.