Skip to content

Commit 84d503b

Browse files
committed
Correct dynamic type of tear-off with covariant parameter
1 parent 875e702 commit 84d503b

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

1576615766
\commentary{%
1576715767
This is concerned with the dynamic type of the function object obtained by
@@ -15774,7 +15774,7 @@ \subsubsection{Instance Method Closurization}
1577415774
}
1577515775

1577615776
\LMHash{}%
15777-
If $T$ is a non-generic class then for $j \in 1 .. n+k$,
15777+
Otherwise, if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1577815778
$T_j$ is a type annotation that denotes the same type
1577915779
(\ref{typeType})
1578015780
as that which is denoted by the type annotation on
@@ -15919,7 +15919,7 @@ \subsubsection{Super Closurization}
1591915919
\LMHash{}%
1592015920
For each parameter $p_j$, $j \in 1 .. n+k$, if $p_j$ is covariant
1592115921
(\ref{covariantParameters})
15922-
then $T_j$ is the built-in class \code{Object}.
15922+
then $T_j$ is \DYNAMIC.
1592315923

1592415924
\commentary{%
1592515925
This is concerned with the dynamic type of the function object obtained by
@@ -15932,7 +15932,7 @@ \subsubsection{Super Closurization}
1593215932
}
1593315933

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

0 commit comments

Comments
 (0)