Skip to content

Commit 1118d55

Browse files
committed
Correct dynamic type of tear-off with covariant parameter
1 parent 89d15d9 commit 1118d55

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
@@ -15425,7 +15425,7 @@ \subsubsection{Instance Method Closurization}
1542515425
\LMHash{}%
1542615426
For each parameter $p_j$, $j \in 1 .. n+k$, if $p_j$ is covariant
1542715427
(\ref{covariantParameters})
15428-
then $T_j$ is the built-in class \code{Object}.
15428+
then $T_j$ is \DYNAMIC. %% No user code will see this, avoid downcast in body.
1542915429

1543015430
\commentary{%
1543115431
This is concerned with the dynamic type of the function object obtained by
@@ -15438,7 +15438,7 @@ \subsubsection{Instance Method Closurization}
1543815438
}
1543915439

1544015440
\LMHash{}%
15441-
If $T$ is a non-generic class then for $j \in 1 .. n+k$,
15441+
Otherwise, if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1544215442
$T_j$ is a type annotation that denotes the same type
1544315443
(\ref{typeType})
1544415444
as that which is denoted by the type annotation on
@@ -15581,7 +15581,7 @@ \subsubsection{Super Closurization}
1558115581
\LMHash{}%
1558215582
For each parameter $p_j$, $j \in 1 .. n+k$, if $p_j$ is covariant
1558315583
(\ref{covariantParameters})
15584-
then $T_j$ is the built-in class \code{Object}.
15584+
then $T_j$ is \DYNAMIC.
1558515585

1558615586
\commentary{%
1558715587
This is concerned with the dynamic type of the function object obtained by
@@ -15594,7 +15594,7 @@ \subsubsection{Super Closurization}
1559415594
}
1559515595

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

0 commit comments

Comments
 (0)