Skip to content

Commit 470dadb

Browse files
committed
Correct dynamic type of tear-off with covariant parameter
1 parent 1fd423a commit 470dadb

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

1542515425
\commentary{%
1542615426
This is concerned with the dynamic type of the function object obtained by
@@ -15433,7 +15433,7 @@ \subsubsection{Instance Method Closurization}
1543315433
}
1543415434

1543515435
\LMHash{}%
15436-
If $T$ is a non-generic class then for $j \in 1 .. n+k$,
15436+
Otherwise, if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1543715437
$T_j$ is a type annotation that denotes the same type
1543815438
(\ref{typeType})
1543915439
as that which is denoted by the type annotation on
@@ -15576,7 +15576,7 @@ \subsubsection{Super Closurization}
1557615576
\LMHash{}%
1557715577
For each parameter $p_j$, $j \in 1 .. n+k$, if $p_j$ is covariant
1557815578
(\ref{covariantParameters})
15579-
then $T_j$ is the built-in class \code{Object}.
15579+
then $T_j$ is \DYNAMIC.
1558015580

1558115581
\commentary{%
1558215582
This is concerned with the dynamic type of the function object obtained by
@@ -15589,7 +15589,7 @@ \subsubsection{Super Closurization}
1558915589
}
1559015590

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

0 commit comments

Comments
 (0)