Skip to content

Commit 83fdf1e

Browse files
committed
Correct dynamic type of tear-off with covariant parameter
1 parent d1b7393 commit 83fdf1e

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

1541115411
\commentary{%
1541215412
This is concerned with the dynamic type of the function object obtained by
@@ -15419,7 +15419,7 @@ \subsubsection{Instance Method Closurization}
1541915419
}
1542015420

1542115421
\LMHash{}%
15422-
If $T$ is a non-generic class then for $j \in 1 .. n+k$,
15422+
Otherwise, if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1542315423
$T_j$ is a type annotation that denotes the same type
1542415424
(\ref{typeType})
1542515425
as that which is denoted by the type annotation on
@@ -15562,7 +15562,7 @@ \subsubsection{Super Closurization}
1556215562
\LMHash{}%
1556315563
For each parameter $p_j$, $j \in 1 .. n+k$, if $p_j$ is covariant
1556415564
(\ref{covariantParameters})
15565-
then $T_j$ is the built-in class \code{Object}.
15565+
then $T_j$ is \DYNAMIC.
1556615566

1556715567
\commentary{%
1556815568
This is concerned with the dynamic type of the function object obtained by
@@ -15575,7 +15575,7 @@ \subsubsection{Super Closurization}
1557515575
}
1557615576

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

0 commit comments

Comments
 (0)