Skip to content

Commit 62566d4

Browse files
committed
Correct dynamic type of tear-off with covariant parameter
1 parent 35d53c6 commit 62566d4

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

1573915739
\commentary{%
1574015740
This is concerned with the dynamic type of the function object obtained by
@@ -15747,7 +15747,7 @@ \subsubsection{Instance Method Closurization}
1574715747
}
1574815748

1574915749
\LMHash{}%
15750-
If $T$ is a non-generic class then for $j \in 1 .. n+k$,
15750+
Otherwise, if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1575115751
$T_j$ is a type annotation that denotes the same type
1575215752
(\ref{typeType})
1575315753
as that which is denoted by the type annotation on
@@ -15892,7 +15892,7 @@ \subsubsection{Super Closurization}
1589215892
\LMHash{}%
1589315893
For each parameter $p_j$, $j \in 1 .. n+k$, if $p_j$ is covariant
1589415894
(\ref{covariantParameters})
15895-
then $T_j$ is the built-in class \code{Object}.
15895+
then $T_j$ is \DYNAMIC.
1589615896

1589715897
\commentary{%
1589815898
This is concerned with the dynamic type of the function object obtained by
@@ -15905,7 +15905,7 @@ \subsubsection{Super Closurization}
1590515905
}
1590615906

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

0 commit comments

Comments
 (0)