Skip to content

Commit 4b50b84

Browse files
committed
Add commentary to emphasize that new/const can be implicit, and new/const C<T>() is still an error when C<T> is super-bounded
1 parent 70325e0 commit 4b50b84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

specification/dartLangSpec.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7808,7 +7808,9 @@ \subsection{Super-Bounded Types}
78087808
\commentary{%
78097809
This includes the case where the actual type arguments have been provided
78107810
by type inference, which is assumed to have taken place already
7811-
(\ref{typeInference}).%
7811+
(\ref{typeInference}).
7812+
It also includes the case where \NEW{} or \CONST{} is added implicitly
7813+
(\ref{unqualifiedInvocation}, \ref{functionExpressionInvocation}).%
78127814
}
78137815
\item $T$ occurs in the \synt{constructorDesignation} of
78147816
a redirecting factory constructor header

0 commit comments

Comments
 (0)