Skip to content

Commit a947c63

Browse files
committed
Correct dynamic type of tear-off with covariant parameter
1 parent 10dce22 commit a947c63

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

1574315743
\commentary{%
1574415744
This is concerned with the dynamic type of the function object obtained by
@@ -15751,7 +15751,7 @@ \subsubsection{Instance Method Closurization}
1575115751
}
1575215752

1575315753
\LMHash{}%
15754-
If $T$ is a non-generic class then for $j \in 1 .. n+k$,
15754+
Otherwise, if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1575515755
$T_j$ is a type annotation that denotes the same type
1575615756
(\ref{typeType})
1575715757
as that which is denoted by the type annotation on
@@ -15896,7 +15896,7 @@ \subsubsection{Super Closurization}
1589615896
\LMHash{}%
1589715897
For each parameter $p_j$, $j \in 1 .. n+k$, if $p_j$ is covariant
1589815898
(\ref{covariantParameters})
15899-
then $T_j$ is the built-in class \code{Object}.
15899+
then $T_j$ is \DYNAMIC.
1590015900

1590115901
\commentary{%
1590215902
This is concerned with the dynamic type of the function object obtained by
@@ -15909,7 +15909,7 @@ \subsubsection{Super Closurization}
1590915909
}
1591015910

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

0 commit comments

Comments
 (0)