Skip to content

Commit 436bc09

Browse files
committed
Correct dynamic type of tear-off with covariant parameter
1 parent 8f3da96 commit 436bc09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

specification/dartLangSpec.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15244,7 +15244,7 @@ \subsubsection{Instance Method Closurization}
1524415244
\LMHash{}%
1524515245
For each parameter $p_j$, $j \in 1 .. n+k$, if $p_j$ is covariant
1524615246
(\ref{covariantParameters})
15247-
then $T_j$ is the built-in class \code{Object}.
15247+
then $T_j$ is \DYNAMIC. %% No user code will see this, avoid downcast in body.
1524815248

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

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

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

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

0 commit comments

Comments
 (0)